Question DSA-DP-0057
MediumHow does the O(n log n) longest increasing subsequence method work?
- A.
It uses a stack
- B.
It sorts the array
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Dynamic Programming question
How does the O(n log n) longest increasing subsequence method work?
It uses a stack
It sorts the array
Sign up free to see the answer and a step-by-step explanation.
It uses a hash map
It keeps the smallest tail for each length and uses binary search