Please help me in SPOONS

Contest Page | CodeChef <–question

I have used straight forward approach- check rows then column. any idea?

Can you share the link of your solution on codechef? ideone is giving me problems in opening. Also, the word must be contiguous, make sure you are checking that thing.

Note that in your code in Line 14, j[0+i:6+i] is a list of length 6 (5 when i==col-5). If a spoon is in the middle of a row, for instance, this case:


Your code can’t find the spoon. To avoid it, simply change j[0+i:6+i] to j[0+i:5+i] and you will get Accepted.

Your Code:

Accepted Code:

The only difference between these two codes are mentioned above.