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.
Description in JS does not mention rounding anymore.
Remaining languages in progress...done.I plan to remove this requirement and introduce fuzzy equality in all languages.
JavaScript:
Output should have 2 digits precision.
<- this is not tested? Or does it mean "at least 2 digits precision"? Please clarify. Current tests pass with more than two digits after the decimal point.probably you want to raise an issue into the codewars github to have it re-ranked. Me as author don't have control over the final difficulty score. Let me know if you need more guidance on how to do that.
That was fun! But I feel dirty now.
== also works with string representations of a number. Which may or may not be desirable.
An 8kyu should not deliberately confuse people or make them try to understand whatever happened in the author's brain when they submitted this weird description.
fixed
Typo in description: '45 --> "40 + 2"' should be '45 --> "40 + 5"'
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That was fun! And useful too!
This comment is hidden because it contains spoiler information about the solution
I agree. Some of the solutions look really scary but one can solve this in a much less fancy way.
Awesome kata! I learned a lot trying to write somewhat readable code.
Loading more items...