Since the count of items is known a priori (=sizeof(S)), doesn't that mean that the mean and the sum are related in a well defined way? Basically then both critera can be simplified to a single criterion on either sum or mean.
Oh, I missed this detail. In that case for a deterministic result I think you need to look at every possible combination. However, you can order them by the minimum criterion first, and start searching from the smallest to largest, so then the first group than meets the interval criteria is guaranteed optimal.
Well, I came in here to say exactly that: the paper is based on a survey of people self-reporting their past history with sleeping. Not a very good way to control the results.
One could, but I think part of being a good app developer is understanding how people use the platform. Just like Boeing needs pilots, Ford needs drivers, etc.
Imagine trying to develop a web application if you only used a browser on your own development and production website (ie: that you otherwise "left it on your desk")
Unless you are saving lives (a doctor) or protecting the country (in defense), or maybe a few other edge cases, the perception that you need to get back to a person in a few hours is probably more on your end than on the recipient's.
Or need to fix your production servers which have suddenly crashed and every minute of downtime is costing you money and reputation. A category many people on HN probably fall into.
Bingo.... you aren't as important as your cellphone makes you feel.
I have my funky cool blackberry - but I leave it on "Phone only", and, because I rarely ever answer it, hardly anyone ever phones me. I also have no problem ignoring it if it rings and it's not a call I actually need to take - I know it'll go to voicemail. The key is not letting the phone dominate your life. It's really there so I can phone people when I need to, or so I can allow someone to reach me when I need them to - and nothing else.
Amazon and Newegg both email me after I make a purchase requesting that I review the product. They do this a little after the product is delivered--to give me a chance to use it.
I almost always respond to these requests, because I find the reviews helpful in my buying process and that motivates me to contribute back.