Given a 2D matrix of characters. Check whether the word exist in the matrix or not. If it exists then print its path. All movements are allowed (right, left, up, down and diagonally).
http://algorithms.tutorialhorizon.com/backtracking-search-a-word-in-a-matrix/
http://algorithms.tutorialhorizon.com/backtracking-search-a-word-in-a-matrix/
No comments:
Post a Comment