You must Sign In to post a response.
  • Category: .NET

    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.
  • #767554
    Needed more info like
    Is the matrix is fixed or any letters you will give? if you give any words then how you will identify the correct word? Need to refer the dictionary or user will enter the word to be searched? and the matrix size is fixed for 3X3 or it may be any size?
    After these answers we can try based on the answers.

    Thanks
    Shivshanker Cheral
    "If you share your assets (money etc..) it will decrease, But if you share your knowledge it will increase!!! ".


Sign In to post your comments