Given an integer array nums, return the length of the longest strictly increasing subsequence.
A subsequence is an array that can be derived from another array by deleting some or no elements without changing the order of the remaining elements.
nums = [10,9,2,5,3,7,101,18]4nums = [0,1,0,3,2,3]4nums = [7,7,7,7,7,7,7]11 <= nums.length <= 2500-10^4 <= nums[i] <= 10^4Expected time complexity: O(n log n)Run your code to see results
Use Cmd+Enter to run