Comment

Comment by AdieuToLogic

How does one determine the median wherein "the other numbers can be unsorted"?

To wit, given the unordered set:

  [ 5, 1, 3 ]
How would "Only the median (or pair around the median) needs to be sorted" be satisfied?
parent AdieuToLogic 3 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton