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.
[0, 0, 0, 1, 2, 0, 1]
- D.
[0, 0, 1, 2, 0, 0, 1]
Sign up free to see the answer and a step-by-step explanation.