A software engineering interview question I like: computing the median(krisshamloo.com)
krisshamloo.com
A software engineering interview question I like: computing the median
https://krisshamloo.com/blog/007
1 comments
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.