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.
This comment is hidden because it contains spoiler information about the solution
I like this solution much better than the ones up top.
The regexp here is much more readable, you don't have to spend so much time devising it. The trick is to change the order - first split then validate with regexp, not the other way around like I and the author of the current top solution have done. Don't even get me started on 'regexp only' solutions.
This solution taught me to look more closely into the data that I get on the input rather than jumping into the implementation of the idea that I get by first looking at the problem.
You don't need to look for the coordinates in a string, the string really consists only of supposed coordinates. You can split them up and validate individually just like it is done here. This is the best way to approach the problem in my opinion.
This solution is wrong
This comment is hidden because it contains spoiler information about the solution
I cant believe it works.
awesome kata
so simple yet i learned so much
default tests are confusing