Question DSA-STR-0067
HardWhat is the KMP failure (LPS) table for the pattern 'ababaca'?
- A.
[0, 1, 2, 3, 4, 5, 6]
- B.
[0, 0, 1, 2, 3, 0, 1]
- 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 is the KMP failure (LPS) table for the pattern 'ababaca'?
[0, 1, 2, 3, 4, 5, 6]
[0, 0, 1, 2, 3, 0, 1]
Sign up free to see the answer and a step-by-step explanation.
[0, 0, 0, 1, 2, 0, 1]
[0, 0, 1, 2, 0, 0, 1]