Wordsearches Take Long Unless You CodeComputer Science Level 4
And you are given the following list of words to find:
You must determine the positions (row and column position) of where each word STARTS (assume the words appear in rows and read forward - left to right - or backwards - right to left. You do not have to look for words vertically or diagonally). Let the "position sum" be the sum of the row position and the column position.
The word "DOG" starts (forwards) in row 1, column 1 and position sum = 1 + 1 = 2
The word "MARK" starts (forwards) in row 2, column 2 and position sum = 2 + 2 = 4
The word "MATH" starts (backwards) in row 4, column 4 and position sum = 4 + 4 = 8
Calculate the the position sum for each word in the second file and report your answer as the sum of all these values.
So for the example above, your final answer will be 2 + 4 + 8 = 14