Computer Science

What is the basic principle of sorting in insertion sort?

Python List Manipulation

2 Likes

Answer

In insertion sort, for each pass, the correct position for the current element is found by comparing adjacent elements before the current position and sliding larger elements up until an element less than the current element is found.

Answered By

1 Like


Related Questions