Practice Problems

Daily Challenge: Paths Around the Walls (1500) Solve it to start a streak

strings Problems

103 practice problems tagged strings , from difficulty 800 to 2400 — solve them in our in-browser judge with instant verdicts. Browse all problems.

Related: implementation dp suffix-array math stack two-pointers sorting prefix-sums manacher kmp

ProblemTopics Solvers Acceptance Difficulty
Valid Username implementation strings 0 1000
Mask the Email strings 0 1000
Evening the Counts strings 0 1000
Palindrome, Roughly strings 0 1100
Is It a Subsequence strings two-pointers 0 1100
Longest Common Prefix strings 0 1100
Longest Common Suffix strings 0 1100
Rearrange into a Palindrome strings 0 1100
Rotation of Each Other strings 0 1200
Three Kinds of Brackets strings stack 0 1200
Flips to Alternate strings greedy 32
44%
1200
Fair Binary Split strings prefix-sums 0 1200
Look and Say implementation strings 0 1200
Binary Addition math strings 0 1200
Valid IPv4 Address implementation strings 0 1200
Reverse Every Other Chunk strings 0 1200
Balanced Prefix strings prefix-sums 0 1200
Deletions to Anagrams strings 0 1200
Favourite Bigram strings 0 1200
Parse the Number implementation strings 0 1200
Collapse Adjacent Pairs strings stack 0 1300
Count Pattern Occurrences strings 0 1300
Zero Then One math strings 0 1300
Canonical Palindrome strings 0 1300
Lexicographically Smallest Rotation strings 0 1400
Longest Substring Without Repeats strings two-pointers 0 1400
Longest Palindromic Substring strings 0 1500
Count Palindromic Substrings strings 0 1500
Decode the Message strings dp 1
100%
1500
Anagram Windows strings sliding-window 0 1500
Longest Border strings 0 1500
All the Borders strings kmp 0 1500
Smallest Period strings 0 1600
Longest Common Subsequence strings dp 0 1600
Longest Common Substring strings dp 0 1600
Edit Distance strings dp 0 1700
Longest Palindromic Subsequence strings dp 0 1700
Shuffled Together strings dp 0 1700
How Often Each Prefix Appears strings kmp 0 1700
Sentence Reconstructions strings dp 0 1700
Minimum Insertions to Palindrome strings dp interval-dp 0 1700
Counting Embeddings strings dp 0 1800
Fewest Palindrome Cuts strings dp 0 1900
The Longest Palindrome, Fast strings manacher 0 2000
Longest Common Extension strings binary-search hashing 0 2000
Wildcard Matching strings dp 0 2000
Longest Repeat strings suffix-array 0 2100
Every Palindrome, Counted strings manacher 0 2100
Dictionary Match Count strings aho-corasick 0 2200
Rank Among the Suffixes strings suffix-array 0 2200