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.
You should defer calculations of sqrt as late as you can (not do it right away), trying to return as early as you can, and considering various edge cases.
This comment is hidden because it contains spoiler information about the solution
So simple!!
I agree. My comment is from three years ago, I don't even remember this kata. Looks like I let a bit of frustration get the best of me.
Rounding is ( almost ) never the appropriate solution. If something's wrong, provide the problem, not the solution.
Ah, I didn't see that - it's annoying that it's still unfixed after so long
I added
= 0
to the equationadded in JavaScript. already existing in Haskell
fixed
isnt this a duplicate of that issue ?
I don't know how this can be wrong - it says it's expecting exactly what I'm returning!
fixed
of course you're not, just you didn't face these type of things before.
yep, in youre case find= "" and function of replce = "" as well.
Loading more items...