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.
Now I completely understood this kata. But I'm stuck at ✘ 59884848495835 should equal 59884848483559. It's really hard to guess what the number would be. please help. Now my code gets passed with 4 Bigger Numbers.
This comment is hidden because it contains spoiler information about the solution
I don't know! What my code does is swap's the last two elements and checks if this new number is greater than the original number. If not
then it swaps the next element and checks..... Like this I solved it. But I don't know what to do. The sample test cases gets all passed, I even put a test case for number like this big 276153656425956799 and it gives 276153656425956979 and it is correct answer.
This comment is hidden because it contains spoiler information about the solution
I have tried with big numbers and it works.
Test.assert_equals(next_bigger(1234567890987654321), 1234567899087654321)
Test.assert_equals(next_bigger(276153656425956799), 276153656425956979)
Like this one.
Hi, Can you please help me? I'm stuck at bigger numbers cases. I passed one test cases and stuck at this "1234567980 should equal 1234567908".
Do you have some big number test cases on your mind? Please tell me.