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.
Numbers of best practices and clever are low. The comunity of Php is small ?
nice solution
Thank you very much IkigaiBouken!
The code is going to evaluate the return statment and in this case it will give back a boolean because you're using a comparative operator like <, >, <=, >=, ==, and so it's going to look at health > 0, evaluate it and either say it's True or False. So basically it will always return a boolean, decided by the comparison being correct or not.
Also, floor division (integer division) is faster than true division
yeah, you're right. Thanks :)
Because of imprecisions, you could get 54.9999999999 which is not equal to 55.
This comment is hidden because it contains spoiler information about the solution
This was a python 2 solution, where
/
is floor division; in python 3//
is the floor division operator.when im doing that i get wrong answers on randomly chosen tests, each time different tests. For some reason i have to use // instead of /, then it always works
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution