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.
Note that indexing starts from
0
. OP solved it though, closing.This comment is hidden because it contains spoiler information about the solution
just return true statements.
This comment is hidden because it contains spoiler information about the solution
i <= 9
- why 9?My guess is this is causing inifinite loop.
Try printing value of n at the begining of while loop.
OP solved the kata
This comment is hidden because it contains spoiler information about the solution
bored?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
great but you dont need ternary if youre after short line, just return the statement
sorry officer hobovsky, i should've put my question in questions, please dont arrest me
@DeCaTou: you can print the input to console to see which test is failing. In your case it is
n = 500000000000
."My solution does not work" is not a valid kata issue. If you want to raise an issue, you have to tell what is wrong with the kata.
Loading more items...