MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / insertion_sort.py

File insertion_sort.py

sorts/insertion_sort.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2A pure Python implementation of the insertion sort algorithm
3
4This algorithm sorts a collection by comparing adjacent elements.

Callers

nothing calls this directly

Calls 2

splitMethod · 0.80
insertion_sortFunction · 0.70

Tested by

no test coverage detected