Y
Hacker News
new
|
ask
|
show
|
jobs
by
ycui7
47 days ago
if the goal is to only get the median, you should not use sort. sort is O(nlogn). there are algo that give you medium at O(n), check quickselect.