You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. if nums[i - 1] < nums[i], we can use seq with last_small and cur element to form new subseq
2. the last small subseq might use nums[i - 1] as last element, then add nums[i] to subseq is valid
3. the last small subseq might not use nums[i - 1] as last element, means its last element is smaller then nums[i - 1], then add nums[i] to subseq is also valid