in reply to Re^5: move all 0s in an array to the beginning keeping other elements order same
in thread move all 0s in an array to the beginning keeping other elements order same

[ Sorry, missed your reply. ]

but I think that the merge sort algorithm is inherently stable

But sort doesn't necessarily use merge sort. While it's currently the default, it hasn't always been, and it might not always be.

  • Comment on Re^6: move all 0s in an array to the beginning keeping other elements order same
  • Download Code

Replies are listed 'Best First'.
Re^7: move all 0s in an array to the beginning keeping other elements order same
by Laurent_R (Canon) on May 31, 2014 at 08:15 UTC
    Thank you ikegami for your answer.