You are viewing a single comment's thread. Return to all comments →
No, you are not supposed to put the element into the sorted array until you find its final position.
Originally linked by someone else: https://upload.wikimedia.org/wikipedia/commons/0/0f/Insertion-sort-example-300px.gif
Seems like cookies are disabled on this browser, please enable them to open this website
Insertion Sort - Part 2
You are viewing a single comment's thread. Return to all comments →
No, you are not supposed to put the element into the sorted array until you find its final position.
Originally linked by someone else: https://upload.wikimedia.org/wikipedia/commons/0/0f/Insertion-sort-example-300px.gif