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 comment is hidden because it contains spoiler information about the solution
What is being repeated that shouldn't be in this solution?
This comment is hidden because it contains spoiler information about the solution
+1 to the pool of "Please implement solution downvotes" suggestions. So tired of seeing terrible solutions snowball to accumulate insane number of "best practice" votes simply because they are cryptically short.
This comment is hidden because it contains spoiler information about the solution
Swallowing any helpful error messages simply to return string "Error" does not seem like best practices to me.
This comment is hidden because it contains spoiler information about the solution
All-around bad Python translation -- super lazy
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
For anyone seeing this years later in a similar boat as CodingRookie,
res
is likely (but not necessarily) short forresult
.res
could have been any word at all, but the author of the kata decided onres
.The ordering of the vowels here makes me irrationally uncomfortable
This comment is hidden because it contains spoiler information about the solution
Well this is embarassing...
Is it better to set
health - damage
to a variable to have the equation process just once? I'm still trying to understand pass-by-value vs pass-by-reference, and whether it even applies in situations like this. Obviously the gains are essentially non-existent in this exact case.Loading more items...