JPMorganChase Interview Question

How would you implement sorting in a framework you developed on your own.

Interview Answer

Anonymous

Nov 23, 2015

In a loop find minimum of the array and assign it to a new (sorted array). Exclude this element from the array. Complexity is O(n).