Given an integer array nums, return the length of the longest strictly increasing subsequence.
[10,9,2,5,3,7,101,18]4Patience sorting: maintain pile tops. Each number goes on leftmost pile whose top ≥ it (binary search). If larger than all, new pile. Number of piles = LIS length.