Shift to open a gap [mp]
Micro pattern¶
Description¶
Save a value, shift larger values right, and place the saved value in the opened gap.
Problems¶
- Insertion sort (DSA)
- Shell sort (DSA)
- Bucket sort (DSA)
Save a value, shift larger values right, and place the saved value in the opened gap.