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.
Ok, thanks!
If the year is 2001, this code still provides the correct answer.
there is smth i want to point on:
what if the year is 2001?
But still it's a nice code !
mastercalss
I wrote down on a sheet of paper and started calculation ! and yea its right !
awesome, i never would have thought of it that way.
If it was >= then v could take the v = 0 value in the condition and then you would indeed have a division by 0. Without the = sign, the condition goes to the else part and no division by zero is performed.
this gives error when v is 0. should be >=
I had this issue as well there is a different function that avoids the rounding issue
This comment is hidden because it contains spoiler information about the solution
because the tests are shit and do not assert correctly floating point values...
edit: now it would work
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...