Question DSA-DP-0051
MediumWhat is the time complexity of the LCS DP for strings of lengths m and n?
- A.
O(m + n)
- B.
O(mn log n)
- 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
What is the time complexity of the LCS DP for strings of lengths m and n?
O(m + n)
O(mn log n)
Sign up free to see the answer and a step-by-step explanation.
O(2^(m+n))
O(mn)