Longest Increasing Subsequence
Find the length of the longest strictly increasing subsequence in O(n log n) time using patience sorting and binary search.
01The problem
Given an integer array nums, return the length of the longest strictly increasing subsequence.
Follow up: Can you come up with an algorithm that runs in O(n log n) time complexity?
Loading the rest of the lesson…