Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #16088
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: Another little puzzle |
| Date | 2022-12-15 02:04 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <87cz8l1kyy.fsf@bsb.me.uk> (permalink) |
| References | <puzzle-20221214131815@ram.dialup.fu-berlin.de> |
ram@zedat.fu-berlin.de (Stefan Ram) writes: > Given n times of the 24-hour day, print their average. > > For example, the average of "eight o'clock" and > "ten o'clock" (n=2) would be "nine o'clock". > > (You can choose any representation, for example "HH:MM" > or "seconds since midnight".) I came across this problem in another context where the solution I ended up using had two components -- the average and the "strength" of that average. Is this a purely abstract problem or did it crop up in some practical context? The two-valued solution (average/strength) would also work well from some applications. -- Ben.
Back to comp.programming | Previous | Next | Find similar
Re: Another little puzzle Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-12-15 02:04 +0000
csiph-web