📅 Day 48 — 100 Days of Coding Challenge 🧠 Problem Solved: Wildcard Matching (LeetCode 44) Today’s problem focused on string matching with wildcards, where the pattern can contain special characters: 🔍 Problem Summary Match a string against a pattern containing: 1️⃣ ? → matches any single character 2️⃣ * → matches any sequence (including empty) The match must cover the entire string. ⚙️ Approach Used (Recursion + Backtracking) 1️⃣ Use two pointers for string and pattern 2️⃣ If characters match or pattern has ?, move both pointers 3️⃣ If pattern has *, try two choices: • Treat * as empty • Let * consume one character 4️⃣ Handle edge cases when string is exhausted 5️⃣ Return true only if both string & pattern finish together 💡 Key Learnings 1️⃣ How * drastically increases branching 2️⃣ Importance of correct base cases 3️⃣ Why this problem naturally leads to DP optimization Day 48 complete — tough problems build stronger fundamentals 🚀 #100DaysOfCode #LeetCode #Recursion #Backtracking #DP #DSA #ProblemSolving
Good work and keep growing ✨
Keep consistency and learning