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
4503599627370497 is too large a number for double-precision math, meaning it gets rounded down to 4503599627370496 before the square root is found, which is a perfect square. This is way beyond a 7 Kyu exercise
In such case,
67,108,864 ** 2
should end with the digit 6, wouldn't it?I used https://www.gigacalculator.com/calculators/square-root-calculator.php and calculator app by Google. Both gave me a whole number which was 67,108,864. The google calculator gave me specifically 67,108,864.000000
I am not sure how you checked it, but square root of
4503599627370497
is not a whole number.Anyone know what is wrong with the arugment being 4503599627370497? I checked and I got a whole number as the square root yet its telling me that I need to return -1.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're printing out the numbers as a string, but it needs to be formatted as a phone number with the brackets() and the hyphen (-)
This comment is hidden because it contains spoiler information about the solution