Return the length of the longest strictly increasing subsequence of nums (elements keep their order but need not be contiguous).
Input: one line of space-separated integers. Output: the LIS length.
10 9 2 5 3 7 101 18
4
[2,3,7,101] (or [2,5,7,18]).
0 1 0 3 2 3
4
7 7 7 7
1
Run your code against the sample tests, or Submit to run the full suite.