Fundamentals/Comparing Basic Sorting Algorithms
← PrevNext →
Given an array of numbers, return both the result of insertion sort and the count of comparisons performed during sorting as an object {sorted, comparisons}.