Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ insertion_sort.py
File
insertion_sort.py
Sorting Algorithms/insertion_sort.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
insertion_sort(nums):
2
# Start on the second element as we assume the first element is sorted
3
for
i in range(1, len(nums)):
4
item_to_insert = nums[i]
Callers
nothing calls this directly
Calls
1
insertion_sort
Function · 0.70
Tested by
no test coverage detected