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.
Why "1j" instead simply (!) "j" ??
I saw a random test like this:
solution('apples, pears\ngrapes\nbananas !\nbananas', ['!'])
should equal 'apples, pears\ngrapes\nbananas'but if the comment ends with \n ...
"!\nbananas" should be an empty comment followed by a new line containing "bananas"
There are cases where "\n" is part of the comment and others where "\n" ends the comment ... Which one is right?
[1,1,1,1 ...] can be 1 battleship, 2 destroyers, 1 submarine + 1 cruizer, 2 submarines + 1 destroyer, 4 submarines...
I had to move part of the solution to "Preloaded" again, because it is used in the tests.
I had to move part of the solution to "Preloaded" again, because it is used in the tests.
I re-published this kata. Try to refresh the kata´s page.
The output is a list of winners (index of players in the list of players)
Thanks!
The input is a list of strings.
Opponent is the next player after the current.
Thanks!
I changed the description: Item 1 of the "Game Sequence".
Random tests added.
How I hide reference solution? The kata needs "Complete Solution" to be published.