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
approved
C Translation (author inactive).
put a default
returnstatement at the very end of your codethen your function won't return
undefinedanymorethis test just says that if the number was positive calculate the time and if was negative return zero but why when i test it be true and when i click to attumpt it says undefind must be number ?
Common Lisp translation. Please review, then approve :)
I modified test cases to make the more readable and maintainable by testers.
C# translation
fixed in C#, Julia, JS
no response from OP
this is a duplicate of this issue (the tests should use approximate equality instead of strict equality)
this is a duplicate of this issue (the tests should use approximate equality instead of strict equality)
done there + used
EqualsWithDelta()matcherto the OP: remove the rounding from your solution, and it should now pass
fixed C++
@rowcased please see https://docs.codewars.com/languages/cpp/igloo/stringizers#precision-loss-in-formatted-double-values
Loading more items...