3 ms·
Thanks, I've fixed the idea The basic idea is to "pair" the lowest numbers with the highest ones - sort of pushing everything towards the middle values Like I
by SJC_Hacker 2y ago
Thanks, I've fixed the idea
The basic idea is to "pair" the lowest numbers with the highest ones - sort of pushing everything towards the middle values
Like I said, its naive greedy and non-optimal - otherwise time would be linear.