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.
In Java version the method signature has String type as agument of garden, but it should be char type.
Also there are random test cases which expect Dog return even though Crap scenario happens earlier in the input. It is not made clear in the description how to handle this case.
Otherwise i really enjoyed this one :)
This comment is hidden because it contains spoiler information about the solution
I got it wrong first time around in JavaScript with the message:
-expected "Cr@p" to equal "Clean" with bags 5 cap 0-
Which made me scratch my head a bit. Pressed one more time, and everything went green.
Anyone else had that experience?
I gave up on solving this, and I'm trying to learn from submitted solutions instead.
I like this solution, and this gave me a new way of moving towards a solution, so thank you for that.
However when I tried this solution on the kata, it didn't work due to a memory-error. Has something changed in the requirements since submission - or is there some other problem?