Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #16088
| Path | csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
| Newsgroups | comp.programming |
| Subject | Re: Another little puzzle |
| Date | Thu, 15 Dec 2022 02:04:05 +0000 |
| Organization | A noiseless patient Spider |
| Lines | 20 |
| Message-ID | <87cz8l1kyy.fsf@bsb.me.uk> (permalink) |
| References | <puzzle-20221214131815@ram.dialup.fu-berlin.de> |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | reader01.eternal-september.org; posting-host="4e21d85a19619b5cd02452c935caf112"; logging-data="3067628"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18d0ErQcI34w3yHGbmgGy+ZPrzYiB1xXrE=" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
| Cancel-Lock | sha1:IScJVH3eAM6E2tvbzcxr8XpsVBY= sha1:nzl6RcdYztMAaDFBtAMjZ1utnWU= |
| X-BSB-Auth | 1.e1df916673642f978820.20221215020405GMT.87cz8l1kyy.fsf@bsb.me.uk |
| Xref | csiph.com comp.programming:16088 |
Show key headers only | View raw
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