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.
Duplicate of this: https://www.codewars.com/kata/5a4ea304b3bfa89a9900008e
Please don't resolve the issue this time.
A picture could be helpful.
I am on opposite side of iaeliyen: I think solutions using floating points could be accepted, if accurate enough. It's quite intuitive to use
sqrt(2)
in this kata, and I am inclined to think it's correct. You would need to introduce fuzzy comparison for equality though. It would make kata work not only with integers, which would be IMO nice.No random tests.