Question 51
MediumHow does the O(n log n) longest increasing subsequence method work?
- A.
It uses a stack
- B.
It sorts the array
- C.
It uses a hash map
- D.
It keeps the smallest tail for each length and uses binary search
Sign up free to see the answer and a step-by-step explanation.