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.
It must be really cringey, when you have coded this in a normal procedural way, and then you're like hey let's do it again this time with list comprehensions so i can look smart.
Python:
I passed all tests except one. It's the the third one from the fixed tests.
Weird cause after each attack i check if somebody has won (and if somebody reached health==0, i print the other guy won). Please check the test case. Thanks :)
we get it you know OOP :D
Python test cases failed (all other passed):
So should we decrement the amount of zeros before the actual number by 1 if they are more than 2? I guess not, cause when i implement that, then i fail some test cases that state i should have the same amount of zeros before and after, previous to the actual incremented number. I think your test cases should be more consinstent.
For example in this one, this clearly doesnt happen:
Can you elaborate more on "print the input"?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Nahhh. Been coding in many languages.
For some reason i thought about the tree data structure, and brought to my mind that you have to take a certain path to reach a point in the row, knowing the first or last number. Crazy how overthinking can screw you up sometimes.