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.
You're right but this way it looks way more complicated ;)
I expected an empty first word to be invalid input.
both
-Foo-bar
and-foo-bar
are apparently supposed to beFooBar
Nevermind I think you're right :) I hadn't noticed that
row
was shared down the board.I can only see
O(n^2)
. Still was a quick and dirty solution, I don't care enough for the 1 point I get from 6 kyu Katas. ;)Agreed. This is not only poorly worded, but breaks with intuition. For most applications, whitespace is whitespace. If you want to differentiate between ' ' and '\n' you should do so explicitly.
This is O(n^3) in the size of the board :(
Your scan is just
(+)