🔒 Private Site

This site is password-protected.

📘 DSA: Strings Learning Roadmap (Beginner → Advanced)

1. Basics of Strings (Foundations)

These are must-know before solving problems.

-> Click here for more details

🔍 2. Two Pointers on Strings

Used for many interview problems (palindrome, substring checks).

Key patterns:

🪟 3. Sliding Window (Very Important)

Strings + Sliding Window = 20% of interview questions.

Understand two types:

🔸 Fixed Window

E.g., find anagrams of a pattern.

🔸 Variable Window

E.g., longest substring with K distinct characters.

🧮 4. Hashing for Strings

Character frequency arrays

Rolling Hash / Rabin-Karp

Interview problems:

🔤 5. Pattern Matching Algorithms

KMP (Knuth–Morris–Pratt)

Why important?

Z-Algorithm

Trie (String Tree)

Problems:

6. Advanced String Topics

These help in elite interviews.

Suffix Array

Suffix Tree / Compressed Trie

Manacher’s Algorithm

📝 Must Do String Problems

🔹 Level 1 – Easy

  1. Reverse string

  2. Palindrome check

  3. Count occurrences of characters

  4. Remove duplicates

  5. String compression

  6. Leetcode 412. Fizz Buzz - Solution

  7. Leetcode 14. Longest Common Prefix - Solution

🔹 Level 2 – Medium

  1. Longest substring without repeating

  2. Longest palindromic substring

  3. Group anagrams

  4. Valid parentheses

  5. Multiply large numbers (string simulation)

  6. Leetcode 271. Encode and Decode Strings{Premium Problem} - My Leetcode Solution link

  7. Leetcode 647. Palindromic Substrings - My Leetcode Solution link

  8. Leetcode 5. Longest Palindromic Substring - My Leetcode Solution link

🔹 Level 3 – Hard

  1. Minimum window substring

  2. Word break (DP + String)

  3. Regular expression matching (DP)

  4. Wildcard matching

  5. KMP + Z-algorithm applications

  6. Longest duplicate substring (binary search + hash)

  7. Leetcode 647. Palindromic Substrings - My Leetcode Solution link

  8. Leetcode 68. Text Justification - My Leetcode Solution link