- You have been given a pattern and a text string on which KMP algorithm is being implemented.
- You have to enter the amount by which the pattern has to shift right after a particular mismatch.
- The LPS Array for the pattern for assistance is provided.
- Click on Next after submitting an answer to go to the next problem.
- Hint : patInd-LPS[patInd-1]