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.
If a number with trailing zeros is reversed,are the zeros dropped.ie 700 becomes 007 which becomes 7?
This kata is almost a duplicate of this older one. The difference is essentially there we must return the palindromic number itself (or -1 if not found) and not the number of iterations. I've used the same code with very few cosmetic changes and it passes both.
I don't know if this should be marked as an issue...
Node 12.x should be used
The tests should not have global variables
Anyway, the tets are flawed because they use a global variable too, and you can rise it as an issue.
.
Oh god damnit I feel like such a moron. Thanks hobovsky.
That's a lie, and it's the cause of your problem ;)
yes sir.
Does your solution pass the test case
Test.assertEquals( howManyIterationsNeeded(196),null);
correctly?Yep, I've implemented
maxIter
to terminate. I'm able to pass 44000 tests in ~3 seconds, 0 failed, yet always get Exit Code 137 and browser crash. No globals either.Is anybody able to do this without getting Exitcode 137? Why are there over 40k tests...my browser keeps shitting the bed and crashing.
Does optional arguments belong in 7 kyu? I wonder.
.
OK, thanks for the explanation!
Loading more items...