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
Actually your problem doesn't clarify that a polydivisible number can't begin with 0. I can see how the op could misinterpret the instructions.
That doesn't solve the problem. Re-read the problem and try again :)
Can someone please break down why my code didn't work? I thought I produced efficient code:
thanks!
Added :)
yes! I adapted JohanWiltink's code for this translation
Do the random test cases include random polydivisible numbers? (Read the third-to-bottom thread)
I was sure I just fixed that. Definitely fixed now.
Liked it.
Passed the final attempt with all the cases, but the sample test returns an error:
/home/codewarrior/node/test.js:18
}
^
C Translation
Fixed, added
it()
Thanks, solved :)
you are most likely misreading the log, off by one? (The log appears above the test result.)
could there be a bug with solution testing, or I'm missing something?
I keep getting random failure while my code runs good.
example failed logs:
"True should equal False
Log
polydivisible(5) => True"
"True should be False
Log
polydivisible(2918) => False"