please add to the question description that the list should be striclty increasing.(not just sorted)
From the question, " find a subsequence of array in which the subsequence’s elements are in sorted order, lowest to highest".
Lowest to highest indicates ascending order.
Anshuman Singh isn’t 2 2 2 2 3 lowest to highest ??
Tamojit Chatterjee Oh I see what you mean. I initially thought the confusion was around ascending vs descending order. My bad.
Will correct it.