[HN Gopher] Not Your Grandmother's Textbook Exercise
___________________________________________________________________
Not Your Grandmother's Textbook Exercise
Author : zdw
Score : 30 points
Date : 2022-09-01 22:10 UTC (49 minutes ago)
(HTM) web link (cacm.acm.org)
(TXT) w3m dump (cacm.acm.org)
| umanwizard wrote:
| Presumably the list is not ordered adversarially, so you can just
| use quickselect, at O(n) running time.
| totoglazer wrote:
| In that book in 1981 it's quite likely to be a problem faced by
| the grandmother of many current programmers.
| akudha wrote:
| _Compute the mean age, and print it out as the median. It 's much
| easier to program, and Mary Jones will probably never notice the
| difference._
|
| This made me chuckle
| harry8 wrote:
| It's an excel file.
|
| (e) Show her the excel function wizard and launch her empowerment
| for great justice!
___________________________________________________________________
(page generated 2022-09-01 23:00 UTC)