Can anybody give me a hint or some source from which I can understand the logic behind longest "NON-DECREASING" subsequence?
That will be very helpful for a noob like me.
PS — I have already checked out this link — https://www.geeksforgeeks.org/longest-increasing-subsequence/