Loading...
Given an integer array nums, return the length of the longest strictly increasing subsequence.
A subsequence is derived from the array by deleting some or no elements without changing the order of the remaining elements.
10,9,2,5,3,7,101,18
4
10, 9, 2, 5, 3, 7, 101, 18, and we need to find the longest strictly increasing subsequence.2, 5, 7, 101 or 2, 3, 7, 101 or 2, 5, 7, 18.2, 5, 7, 101 or 2, 3, 7, 101 with a length of 4.