Sorry, I think you're wrong on that point, unless you mean "You don't consent..." as a piece of excellent advice.
It was meant as advice. Even if they show up with a warrant, do not consent to the search. You may have to let them perform the search, but you must make it clear that they do not have your permission and that you're only allowing it since they have a warrant. You also don't consent to them seizing any items (because your chances of ever getting them back will be higher if you don't), and of course do not let them search anything other than what is stated in the warrant.
Technology has the ability to deal with some of those social problems,
Yeah. First thing, we need a device that's permanently implanted in every politician and that delivers electric shocks whenever it detects lies or BS. That would solve a lot of these problems.
The fish starts to rot from the head. And since the tail is already stinking quite a bit, it's not hard to extrapolate how rotten the higher-up parts of the fish are.
But really, all of them fall within a very narrow range.
One year is quite a significant difference, unless you want to include the poorest of the poor in the comparison. A life expectancy of under 70 years nowadays means that there's something major wrong with that countrys healthcare system.
Heck, even Cuba is only half a year behind the US in life expectancy. "Slightly better than Cuba", that's really quite an achievement.
But you could also look at the infant mortality rate, which is 40% higher in the States than in the EU (including all members). Now would you consider that to be significant ?
Average life expectancy in the EU is 78.3 years. The difference is so small, they're basically equivalent. So why are those numbers virtually identical?
Because many of the current EU member states are still trying to shake the aftereffects of decades of communism and the resulting poverty.
. In reality, life in the US doesn't differ that much from western Europe.
Why don't you compare the US to western Europe, then ? The EU isn't western Europe anymore. Didn't you watch any news in the last ten years ?
Here's some western Europe number for you:
Switzerland: 80.51 years
Italy: 79.81 years
France: 79.73 years
Liechtenstein: 79.68 years
Spain: 79.54 years
The Netherlands: 78.96 years
Luxembourg: 78.789 years
Germany: 78.80 years
UK: 78.54 years
I left out the Scandinavian countries, but I'm sure you can look those up on Wikipedia yourself.
Then how come that once Bill Gates finally poured some real money into research into a malaria vaccine, we now have a likely candidate in testing? Why did it take until now to figure that one out?
There were trials when Bill was busy getting Windows 2.0 on the market and hadn't even thought of becoming a philanthropist.
Tell me, why do we not yet have a vaccine for malaria?
Because malaria, unlike many other diseases that can be vaccinated against, is caused by a family of protozoan parasites, not a bacteria or virus, which makes developing a vaccine slightly more difficult.
Re:Chest compression vs. ventilation
on
Treating the Dead
·
· Score: 1
One can't help but wonder how this relates to the recent discussion about how chest compression is more important than ventilation while performing CPR (to the point where you should probably just focus solely upon the compression).
It doesn't. The changes in CPR are related to the old process being way to complicated for the average person. You couldn't, for example, describe it on the phone. They found that it's far more important to start heart massage right away than to go through all the steps like checking for pulse, or even get the ratio of compressions/breaths correct. Too many people were just too afraid to even attempt CPR, and that's what killed the patients.
The new process is much simpler. If you find someone who's unconscious and you merely suspect that he might have gone into cardiac arrest or fibrillation, start heart massage right away. If the patient objects, you may stop.
Re:Makes a little bit of sense. . .
on
Treating the Dead
·
· Score: 2, Informative
Wohoo, it's a good grove! I could go on all day. What? Oh, you're fine now? And it hurts? OK, I understand...
Ah, yes. That was one of the other changes to simplify resuscitation - don't bother checking for a heartbeat, start resuscitating right away. If the patient doesn't need it, he'll protest soon enough.
It would be interesting to know to what extent these reperfusion effects apply to intentional periods of oxygen-deprivation without losing consciousness.
You're not going into deep desaturation this way - your heart is still beating and there's more than enough oxygen in the air in your lungs to last you for a couple of minutes (I assume that your training also led to a lung volume that's way above average).
What do you mean by 10? Start dropping a marble at the 10th floor? If it breaks what? You only have two marbles.
If it breaks, you search 1-9 with the other marble, starting at 1 of course. If it breaks at 40, you search 31-40, and so on. (There's an even better solution somewhere in the thread. Going up by 10 yields 10.5 tries average, 19 tries maximum, while the best solution yields 9.91 tries average, 14 maximum).
I would start dropping from the 2nd floor, if it breaks I use the reminder (one) on the first floor. Otherwise go to 4th, and so on.
That would give you around 25 tries on average and 51 maximum.
will receive one million eight-digit phone numbers through a TCP stream which you shall sort in RAM.
Hm, for 7-digit numbers this could be done with just 1.2 MB of RAM, but for 8 digits ? I'd say it's not possible in every case. If you have a lot of contiguous numbers you could get away with storing just start and end numbers, but for a totally random selection you'd need more RAM. Or am I missing something ?
Well, if the question only was "How would you calculate that?", I would have said that I'd use my pocket calculator. It's not that they said I wasn't allowed to use one.;)
Why would you assume you couldn't use a calculator,
Maybe you want to run the algorithm on an 8-bit microcontroller that's slow as heck when you're using floating point (and the floating point library will eat 85% of the code memory space) ?
True, not likely when you're working at google, but it might well pop up if you're working with small processors.
I've never been asked to be a human calculator in an interview before, so it took a few seconds to realize that I was actually being quizzed on my ability to do math in my head.
Nope. That wasn't a question of doing math in your head, it was a question on how to calculate a logarithm using only basic math. It's fairly simple actually in a 10-base system and trivial (requires only subtraction and bit-shifting) in 2-base, but you have no chance of figuring it out yourself if you've not heard of it before.
The answer I see for the first question is a good ol' binary search. Throw from the 50th, if it doesn't break, throw from the 75th and so on. The other two you hit the nail in the head.
Ow. That gives you an awfully big number of tries (50 tries) in the worst case (49th floor). Going up in smaller increments (10 floors, for example) would give you a much lower maximum number of tries (19 tries).
It was meant as advice. Even if they show up with a warrant, do not consent to the search. You may have to let them perform the search, but you must make it clear that they do not have your permission and that you're only allowing it since they have a warrant. You also don't consent to them seizing any items (because your chances of ever getting them back will be higher if you don't), and of course do not let them search anything other than what is stated in the warrant.
Yeah. First thing, we need a device that's permanently implanted in every politician and that delivers electric shocks whenever it detects lies or BS. That would solve a lot of these problems.
Yeah. Just think of all the weapons, bombs, guns, and various other war toys for killing $CURRENT_ENEMY could be built with all that manpower and $$.
Instead their wasting time on their space toys.
They're taking money that would be spent on war toys and don't spend it on war toys. That's good enough.
No warrant, no search.
You don't consent to police searching your house. That's what search warrants (and the trouble to get one) are for.
The fish starts to rot from the head. And since the tail is already stinking quite a bit, it's not hard to extrapolate how rotten the higher-up parts of the fish are.
About the U1MR (under 1 mortality rate) and the U5MR (under 5 mortality rate) can be found here:
http://www.unicef.org/sowc04/files/Table1.pdf
One year is quite a significant difference, unless you want to include the poorest of the poor in the comparison. A life expectancy of under 70 years nowadays means that there's something major wrong with that countrys healthcare system.
Heck, even Cuba is only half a year behind the US in life expectancy. "Slightly better than Cuba", that's really quite an achievement.
But you could also look at the infant mortality rate, which is 40% higher in the States than in the EU (including all members). Now would you consider that to be significant ?
USA: 6.37 per 1000 live births
European Union: 4.80 per 1000 live births
all according to these guys:k order/2091rank.html
https://www.cia.gov/cia/publications/factbook/ran
Because many of the current EU member states are still trying to shake the aftereffects of decades of communism and the resulting poverty.
. In reality, life in the US doesn't differ that much from western Europe.
Why don't you compare the US to western Europe, then ? The EU isn't western Europe anymore. Didn't you watch any news in the last ten years ?
Here's some western Europe number for you:
Switzerland: 80.51 years
Italy: 79.81 years
France: 79.73 years
Liechtenstein: 79.68 years
Spain: 79.54 years
The Netherlands: 78.96 years
Luxembourg: 78.789 years
Germany: 78.80 years
UK: 78.54 years
I left out the Scandinavian countries, but I'm sure you can look those up on Wikipedia yourself.
There were trials when Bill was busy getting Windows 2.0 on the market and hadn't even thought of becoming a philanthropist.
Because malaria, unlike many other diseases that can be vaccinated against, is caused by a family of protozoan parasites, not a bacteria or virus, which makes developing a vaccine slightly more difficult.
It doesn't. The changes in CPR are related to the old process being way to complicated for the average person. You couldn't, for example, describe it on the phone. They found that it's far more important to start heart massage right away than to go through all the steps like checking for pulse, or even get the ratio of compressions/breaths correct. Too many people were just too afraid to even attempt CPR, and that's what killed the patients.
The new process is much simpler. If you find someone who's unconscious and you merely suspect that he might have gone into cardiac arrest or fibrillation, start heart massage right away. If the patient objects, you may stop.
Ah, yes. That was one of the other changes to simplify resuscitation - don't bother checking for a heartbeat, start resuscitating right away. If the patient doesn't need it, he'll protest soon enough.
Let's ban it, right along with dihydrogenmonoxide.
You're not going into deep desaturation this way - your heart is still beating and there's more than enough oxygen in the air in your lungs to last you for a couple of minutes (I assume that your training also led to a lung volume that's way above average).
Bah, 128 bits should be enough for everyone.
Coal isn't all carbon, you know.
If it breaks, you search 1-9 with the other marble, starting at 1 of course. If it breaks at 40, you search 31-40, and so on. (There's an even better solution somewhere in the thread. Going up by 10 yields 10.5 tries average, 19 tries maximum, while the best solution yields 9.91 tries average, 14 maximum). I would start dropping from the 2nd floor, if it breaks I use the reminder (one) on the first floor. Otherwise go to 4th, and so on.
That would give you around 25 tries on average and 51 maximum.
There's a "me", though.
Hm, for 7-digit numbers this could be done with just 1.2 MB of RAM, but for 8 digits ? I'd say it's not possible in every case. If you have a lot of contiguous numbers you could get away with storing just start and end numbers, but for a totally random selection you'd need more RAM. Or am I missing something ?
Well, if the question only was "How would you calculate that?", I would have said that I'd use my pocket calculator. It's not that they said I wasn't allowed to use one. ;)
Maybe you want to run the algorithm on an 8-bit microcontroller that's slow as heck when you're using floating point (and the floating point library will eat 85% of the code memory space) ?
True, not likely when you're working at google, but it might well pop up if you're working with small processors.
I think some other poster answered that below - use the square root of the number of floors. I happened to pick 10 by dumb luck. :P
Nope. That wasn't a question of doing math in your head, it was a question on how to calculate a logarithm using only basic math. It's fairly simple actually in a 10-base system and trivial (requires only subtraction and bit-shifting) in 2-base, but you have no chance of figuring it out yourself if you've not heard of it before.
Ow. That gives you an awfully big number of tries (50 tries) in the worst case (49th floor). Going up in smaller increments (10 floors, for example) would give you a much lower maximum number of tries (19 tries).