Give a square matrix of alphabets within contain English Letters in arbitrary manner in C#
Give a square matrix of alphabets within contain English Letters in arbitrary manner, while searching a word in it , you can go left to right horizontally, vertically downloads or diagonally towards right(Both Upwards and downwards.For Example , In the given matrix (A#A#K,A#S#K,A#K#K).
The word "ASK" is matched four times in the input matrix. so the output will be 4.