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.
Done! Thank you for bringing it up.
This is a great question, I hadn't considered this at all! And as currently implemented, the random tests could generate travels with the same origin and destination, so it is worth considering.
I'm thinking that these represent travels (the wording in the description describes them as such) and therefore if you travel from home to home, you still wander outside for a bit, potentially get rained on, then come back. But this is a bit lawyer-y.
We could also say "no location will be the same as the current location" in the description, and amend the random tests so that it is true.
What do you think?
This comment is hidden because it contains spoiler information about the solution
Thanks I'll add such test case in heroic battles and sample tests soon.
Hopefully the merge conflict is fixed now, as I cannot get codewars to display to me what the conflict is, and I don't see it.
sure
Congrats on solving. I'll play around with your solution to see if I need to add more edge case tests or generate specific patterns in random tests.
added
You are absolutely right. A head never spawns any additional body parts as descendants. This was a rendering mistake of me in the description. Fixed
I don't really get what you're getting at. Is the description not consistent, or the problem? I feel the problem is consistent, in that when the root body gets cut, a single head spawns as root as a last resort hydra. Cutting that head kills the Hydra. Let me put it this way, whenever you cut a
x
, that part and all its descendant parts get cutt of and get replaced by a head#
. The root body is no exception to this rule.fixed?
It's done
fixed
Then you've not seen worse xD
Fixed
Loading more items...