Given an array of integers `values`, determine the length of the longest subsequence where every element is greater than or equal to the previous one.
Explanation: The longest non-decreasing subsequence is [1, 2, 3, 4, 5].
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak