← BackMark CompleteInsertion SortBuild sorted prefix by inserting each element in place.sortinginsertion-sortUpdated 2025-09-01ComplexityWorst O(n^2)Best O(n) nearly sortedStablePreserves equal order