>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Practice/String Algorithms
6 subtopics · 19 problems

String Algorithms

Hashing, KMP, Z-function, tries, suffix structures, and string matching.

01Polynomial Rolling Hash

Compare substrings in O(1) after O(n) preprocessing.

1 easy1 medium2 hard
ProblemDifficultyLink
1851CTiles ComebackeasySolve
271DGood SubstringsmediumSolve
1850GThe Morning StarhardSolve
1200ECompress WordshardSolve

02KMP Algorithm

Linear-time pattern matching using the prefix function.

2 medium1 hard
ProblemDifficultyLink
126BPasswordmediumSolve
625BWar of the RosesmediumSolve
432DPrefixes and SuffixeshardSolve

03Z-Function

Compute Z-array: length of longest substring starting at i that matches a prefix.

1 medium2 hard
ProblemDifficultyLink
126BPasswordmediumSolve
432DPrefixes and SuffixeshardSolve
535DTavas and MalekashardSolve

04Trie (Prefix Tree)

Store and search strings/prefixes efficiently.

3 medium1 hard
ProblemDifficultyLink
1829CMr. Perfectly FinemediumSolve
1881DDivide and EqualizemediumSolve
271DGood SubstringsmediumSolve
1837DBracket ColoringhardSolve

05Suffix Array & LCP

Sort all suffixes and compute longest common prefix array.

3 hard
ProblemDifficultyLink
432DPrefixes and SuffixeshardSolve
1200ECompress WordshardSolve
802IFake News (hard)hardSolve

06Manacher's Algorithm

Find all palindromic substrings in linear time.

2 hard
ProblemDifficultyLink
1326D2Prefix-Suffix Palindrome (Hard)hardSolve
7DPalindrome DegreehardSolve
All TopicsStudy the Theory
Was this helpful?
>RunTimeFix

Practical programming education. Books, videos, courses, and hands-on learning for competitive programming, DSA, and software engineering.

RunTimeFix

  • About
  • YouTube
  • Book
  • Study Library
  • Courses

Learn

  • Competitive Programming
  • DSA
  • Development
  • Databases

Legal

  • Privacy
  • Terms
  • Refund Policy

RunTimeFix — debug → solve → run

© 2026 RunTimeFix. All rights reserved.