4 ms·
A) is the right *business* answer the 99% of the time, assuming you have a fast routine for sorting an array but not one for computing the median directly. Mar
by samuel 4y ago
A) is the right *business* answer the 99% of the time, assuming you have a fast routine for sorting an array but not one for computing the median directly.
Mary shouldn't care about a) vs b) unless she has to wait too much to get the answer. If she has, then her need has to be weighted against other business needs, so the data gathered in c) becomes relevant. b) then becomes one of c's aftermaths.
d) is dishonest
So it is a) -> c)
I wouldn't go directly to c), a) is cheap enough.