27. Word Search
β GFG solution to the Word Search problem: find if a word exists in a 2D character matrix using DFS backtracking technique. π
π§© Problem Description
π Examples
mat[][] = [['T', 'E', 'E'],
['S', 'G', 'K'],
['T', 'E', 'L']]
word = "GEEK"mat[][] = [['T', 'E', 'U'],
['S', 'G', 'K'],
['T', 'E', 'L']]
word = "GEEK"π Constraints
β
My Approach
DFS Backtracking Algorithm
π Time and Auxiliary Space Complexity
π§βπ» Code (C++)
β Code (Java)
π Code (Python)
π§ Contribution and Support
πVisitor Count
Last updated