Scenarios for selection sort, insertion sort, and quick sort
问题 If anyone can give some input on my logic, I would very much appreciate it. Which method runs faster for an array with all keys identical, selection sort or insertion sort? I think that this would be similar to when the array is already sorted, so that insertion sort will be linear, and the selection sort quadratic. Which method runs faster for an array in reverse order, selection sort or insertion sort? I think that they would run similarly, since the values at every position will have to be