Yogesh ..’s Post

Day 50/100 | #100DaysOfDSA 🚀🔥 Today’s problem: Word Search Given a grid of characters and a word, we need to check if the word exists by moving horizontally or vertically. At first it feels like simple traversal… But the catch? You can’t reuse the same cell twice. Approach: • Try starting from every cell • Use DFS + Backtracking • Match characters step by step • Mark visited cells and backtrack if path fails Time Complexity: O(m × n × 4^L) Space Complexity: O(L) (recursion stack) Big takeaway: When choices branch in multiple directions, Backtracking is the key. Half century done. Staying consistent. 💯 Day 50 complete. 🚀 #100DaysOfCode #LeetCode #DSA #Algorithms #Backtracking #DFS #Java #CodingJourney #ProblemSolving #InterviewPrep #TechCommunity

  • text

To view or add a comment, sign in

Explore content categories