Amazon interview question

debug a sorting array function

Interview Answer

Anonymous

5 Aug 2021

there was a problem in the the indexes of the array array[min] > array[x] should have been array[min] > arr[y]