Quiz

Question 1 of 4. 0 correct, 0 incorrect.

A solution sorts its input in O(n log n), then for each element scans the rest of the array. Which step should be improved first?