Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Look again, and the index value for 2 is 27.
Well, I had just created some print statements to track the words... I've since deleted that but you can easily do the same. Also: I did notice that your code fails on other types of test, so give it a thorough look while print/debugging. Best of luck!
You have to check '(' and ')' but you can ignore those : {} []
Hi junioryao, I have run your code and checked its output. It returned
1
(claimingBob
had won) on a random test wherein neither player could find any match word for the original game word. Tests of this type should return-1
.This comment is hidden because it contains spoiler information about the solution