Comment Comment by petters Well, the code being measured does one pass through the array. Sorting can in general not be done in linear time, so asymptotically you won't gain anything by sorting first.Edit: Whoops, I misunderstood. Sorry! parent petters 9 years ago
Edit: Whoops, I misunderstood. Sorry!