Given an array nums, return the length of the longest strictly increasing subsequence, using an O(n log n) approach. The input is JSON {nums}.
Input: JSON {nums}.
Output: Integer — the length of the longest increasing subsequence.
Input: {"nums":[10,9,2,5,3,7,101,18]}
Output: 4
Explanation: [2,3,7,18].Input: {"nums":[0]}
Output: 1
Explanation: Single element.Input: {"nums":[7,7,7]}
Output: 1
Explanation: No strict increase.1<=n<=2500