🚀 Phases 1–5 are live — Days 1–17 cover the foundations and the algorithmic patterns. See the roadmap →
Day 2 - Arrays and StringsStringsPractice QuestionsProblem List

Practice Questions

Here is a curated list of practice questions to test your understanding of strings.

Try to solve these on your own before looking at the solutions! Each problem builds on the concepts from the Strings section. Start with Easy problems to build confidence, then work your way up.

Easy

ProblemTechniqueStatus
Reverse a StringTwo PointersAvailable
Valid PalindromeTwo PointersAvailable
Valid AnagramCharacter FrequencyAvailable
Longest Common PrefixVertical ScanningAvailable
Count and SayString BuildingAvailable

Medium

ProblemTechniqueStatus
String to Integer (atoi)Parsing / State MachineAvailable
Longest Palindromic SubstringExpand Around CenterAvailable
Longest Substring Without Repeating CharactersSliding WindowAvailable

More Practice (Coming Soon)

ProblemTechniqueStatus
Group AnagramsHash Map + SortComing Soon
Minimum Window SubstringSliding WindowComing Soon
Longest Repeating Character ReplacementSliding WindowComing Soon
Encode and Decode StringsString ManipulationComing Soon
Palindromic Substrings (Count)DP / Expand Around CenterComing Soon
Zigzag ConversionSimulationComing Soon
String CompressionTwo PointersComing Soon
Implement strStr() / Find the Index of First OccurrenceKMP / Rabin-KarpComing Soon