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.
what of beauty did you find there ? A regular code innit ?
This comment is hidden because it contains spoiler information about the solution
Yes I looked up 'character to int' and of course ended up with the character code not the number value, seemed to be working but maybe due to odd and even being preserved.
No, it will when Node version >= 11
This comment is hidden because it contains spoiler information about the solution
Mutating the array you're looping through is always a bad idea. You're deleting the wrong values like that.
You can see your function returns the wrong values in a case like this one, where are the other
2
s and18
s?Because
9223372036854775807 > 2**53 - 1
.I just mean you can see if people used your method yourself - all the solutions are shown
You can check in the solutions tab
This comment is hidden because it contains spoiler information about the solution
@Pink Ghost, rrogerthat used javascript, not Python.
The same issue happened to me. Turns out you need to use the function "enumerate" in your for loop. Here is what helped me in this kata: https://www.codecademy.com/en/forum_questions/5087f2d786a27b02000041a9
Good luck :)