I have writeen the same code as shown in the merge sort video still it is not sorting some elements can you please tell? where i am lagging
hello @Nitishkumar9711

these two while loop should come outside of the first while loop.
check ur corrected code here-> https://ide.codingblocks.com/s/244679
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.