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.
My code where there's a number that has more than 1 option, for example, the number 109, it's decrementing (1, 0, 9) and if you add 2 it becomes 111. The problem is, that if I move the part of the code that takes care checking that a palindrome number is 2 miles or less away, other cases break. I'll have to find the order so that there's no problem.
I just did, thx. I didn't know that I could log things in the web console
Can someone tell me what the test cases are? Not the regular ones, the advanced ones. I'm 99% sure my solution should work. In most upcoming cases I get 0 as result and expected 1. For example, in intelij I run my own test for incrementing/decrementing upcoming numbers, for example 987654320 and get 1 as result. Same with 1234565, but in the kata tests the code doesn´t pass and I'm not sure why. I tested every scenario and it returns what I expect in intelij, but not in the kata
I don't remember the exact number but it's around 5.5k I think
Thanks man, I didn't know what label to put because I didn't know that 1[306, 1]676 ment 1306 and 1676 and I thought maybe it was an issue with the testing part.
I don't really understand what the problem is with my code. expected:<[518, 598, 1[306, 1]676, 2427]> but was:<[518, 598, 1[]676, 2427]>.
What does 1[306, 1] mean in this case?