Guest User

Untitled

a guest
Jun 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def TheWordGame(n, words):
  2. for p in range(1, len(words)):
  3. if words[p][0] != words[p-1][-1] or words[p] in words[:p]:
  4. return [(p%n)+1,(p//n)+1]
  5. else:
  6. return [0,0]
Add Comment
Please, Sign In to add comment