Question DSA-STR-0073
HardWhat does Manacher's algorithm compute in O(n)?
- A.
All anagrams
- B.
The longest common subsequence
- 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
Strings question
What does Manacher's algorithm compute in O(n)?
All anagrams
The longest common subsequence
Sign up free to see the answer and a step-by-step explanation.
The longest palindromic substring centred at every position
The edit distance