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.
I have checked.
Your code does not pass that test because it does not return
-1
.Here is the error message:
Just tried your solution on an online compiler:
It doesn't return -1 for that input.
I've check my solution and I'm pretty sure that it works fine in other IDE's. For the input input = 4503599627370497, I've recived the output as -1.
I recommend you to check it because there is an issue with the Kata.
If you are not sure there is an
issue
with the kata, post instead as aquestion
.The C# translation is working correctly, no kata
issue
.Your code fails this test:
4503599627370497
-1
This comment is hidden because it contains spoiler information about the solution
CW is not required to support IDEs. Closing.
That's an honourable deed, good job.
Updated description to now honor the contract between stated types and actual types.
Rust
Examples provided:
Return type:
Option<u64>
Test case:
assert_eq!(find_next_square(155), None);
Test cases and return type fail to honor the stated requirement.
my forst impression as i read the instrectyions are, we identify a non perfect square number if the last degits are :2,3,7,8,
any other numbers are considered a perfect square, but i cant find this exact logic in the instructions, i ll update this comment once i fully inderstand the kata.
edit : so apparently i had a false understanding to what the kata actually want,t wants you to check for the neext perfect square,pretty basic in javascript although it took me like 30 mins , try to label the instructions , 1 at a time it will make it alot easier
the problems with your code are
NASM translation
11 * 11 == 121
12 * 12 == 144
well, do you know what an
integral perfect square
is?...because it's in the description
This doesn't make any sense! I don't understand how you get from 121 to 144 with algabra!!
Loading more items...