Your question is Longest Increasing Subsequence. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is formed by deleting zero or more elements without changing the order of the remaining elements.
Write a function that returns only the length, not the subsequence itself.
numsdef length_of_lis(nums):