Hello folks, I've been having some trouble with a school assignment and I wondered if you could help me.
The program that I have to create must read a NxM character matrix that contains a certain number of words (N<=10 and M<=10) and a list of these words, and then find the words in the matrix replacing the characters that don't belong to the provided words by the character "#".
input:
- the number of lines and columns of the matrix (N, M)
- the matrix itself;
- the number P of words;
- the list of words.
output:
- a NxM matrix with the characters that don't belong to the provided words replaced by #
I need to create a function that finds strings along the rows of the matrix, a function that replaces characters by #, and a function that inverts the order of the characters in a string (words can be displayed backwards in the puzzle, horizontally or vertically).
So, can anyone give some ideas? Thanksss!