please see my code…
1 test case not running
hello @rabhi1611
which test case is failing.
i think in they are considering relative order as well.
ur current code is not maintaining relative order

correct output should be -> 5 2 4 8 6
test case 0. Btw inputs should be in the format 1 or 0 only.
no it is not true,any number is allowed
ok got it, but relative order should not be the point as in question it has been asked to arrange the number, there is no point of ordering here.
i have checked the test case , they are considering relative order as well
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.