Incorrect test case should compare by backtracking ;-)

The test can’t compare the correct answer, my function return:
[13 12 ] [13 ] [12 ] []
The expected result is:
[] [12 ] [12 13 ] [13 ]

This is the same answer why the test fail?

Because you are supposed to output the result in ascending order.

Click here to start solving coding interview questions