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.
Fixed.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Problem statement is self-contradictory.
It says that -1 should be returned if there are empty cells, but it also says that 1 or 2 should be returned if there's a winner.
It is possible to win before running out of cells.
I don't think error handling is expected in this kata. I assumed that there's always enough input, and it worked.
This comment is hidden because it contains spoiler information about the solution
I feel like a Java programmer