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 kata should be 6 kyu if the math at it was obvious.
Agree
Thanks!
querying the length of a list is a O(1) operation, so storing it makes no difference. The only reason to replace it with a variable might be to increase readability, but that's personal preference.
I think you probably need to account for both robots running out of attacks without a KO :)
This could result in an infinte loop.
.
It qualifies recursion practice ;-)
I agree.... This may be much easier for anyone who has written a compiler or taken a compiler class (I have not).
I set a goal of solving one kata a day of thinking I could devote a couple of hours each day. After spending over 6 hours solving this one, I'm rethinking how practical that goal is.
thank you!!!
Absolutely, harderst 5th kyu Algorithm i ever did by quite a margin actually.
I did not use regex, it was insanely hard, almost like i was writting an A.I lol.