@biganashvili
As you stated correctly 'Testing for" and "Expected" values shlould be the same' if your solution is correct. Your error message shows the issues; your solution returned values that are not the next highest permutation. It may be hard to notice since the numbers are very similar.
Testing for 1234567890
Expected (This is the output your code produced)
: 1234567980 (value is +90)
to equal (This is what the test case expected)
: 1234567908 (value is +18)
Testing for 59884848459853
Expected (This is the output your code produced)
: 59884848495853 (value is +36000)
to equal (This is what the test case expected)
: 59884848483559 (value is +23706)
@biganashvili
As you stated correctly 'Testing for" and "Expected" values shlould be the same' if your solution is correct. Your error message shows the issues; your solution returned values that are not the next highest permutation. It may be hard to notice since the numbers are very similar.
Testing for 1234567890
Expected (This is the output your code produced)
: 1234567980 (value is +90)
to equal (This is what the test case expected)
: 1234567908 (value is +18)
Testing for 59884848459853
Expected (This is the output your code produced)
: 59884848495853 (value is +36000)
to equal (This is what the test case expected)
: 59884848483559 (value is +23706)
Another fun one, thanks
cheers :)
This comment is hidden because it contains spoiler information about the solution