Relevant Patterns
#Study these pattern guides before tackling the problems. Understanding the core concepts will help you solve them more efficiently.
Practice Problems
#Easy#28
Show 2 hints
- Build lps of pattern; walk text with fallbacks using lps.
- Avoid re‑scanning characters after mismatches.
Hard#214
Show 2 hints
- KMP on s + # + reverse(s) to find longest palindromic prefix.
- Prepend reverse of the suffix not covered by the prefix.
Hard#1392
Show 2 hints
- Compute lps over the string and return lps[last].
- Be careful with full‑string matches (must be proper prefix).
Track Your Progress
Mark problems as complete as you solve them. Come back anytime to continue where you left off.