home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.programming      Programming issues that transcend langua      57,431 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 56,774 of 57,431   
   Ben Bacarisse to Stefan Ram   
   Re: Another little puzzle   
   15 Dec 22 02:04:05   
   
   From: ben.usenet@bsb.me.uk   
      
   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.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca