Hacker News
new
top
best
ask
show
job
A software engineering interview question I like: computing the median
(
krisshamloo.com
)
1 point
by
speckx
7 hours ago
1 comment
ycui7
6 hours 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.