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.
Im curious as to why we do not need to specify return "false" or "true" in this example?
Math is allowed, what you are getting is:
"Math::DomainError (Numerical argument is out of domain - "sqrt")"
you could use 'raise' to attend it or use logical expression to ensure the positive range of the number before use Math::sqrt
This comment is hidden because it contains spoiler information about the solution
Thanks for mentioning. I am new on this platform and didn't know the purpose of spoiler flag. Now I knnow. Thanks :)
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
You get this error when you pass a negative value to Math.sqrt. You can't pass negative to it.
Very easy))
i agree, for example 1e16+1 returns true when it shouldn't
hmm.. i kept getting sqrt error. not sure why. thought Math.sqrt isn't supported here.
This comment is hidden because it contains spoiler information about the solution
Note: this only works because of a lack of test coverage
"abe" is greater than "abcd", but also shorter.
Good thought, could be based on a minimum threshold honor. Or even weight their upvotes a lot more.
Very much so, we've been really wanting to include benchmarking, it just turned into a much larger feature than we initially thought, especially when you take into account trying to maintain accuracy and results fluctuation based on resources.
On my profile I appear as having completing 100% of the 5 kyu level and yet I am not leveling up to 4 kyu. Does anyone know what is going on?
Cheers
Loading more items...