Last test case is not getting passed
Hi @tusharnitharwal,
try modifying ur code. If input is {1.2,4,3,6,5}, output should be 1,3,5,2,4,6 whereas ur code gives 1,3,5,6,2,4.
I know ur ans is also correct but the order of numbers is getting disturbed.
Hope dis resolves ur doubt.
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.