Google Interview Questions
#1 Members - Reputation: 1356
Posted 08 February 2005 - 11:19 AM
edit: Obvious spelling mistake. tall --> tell. [Edited by - kSquared on March 5, 2006 11:48:43 PM]
"Choose a job you love, and you'll never have to work a day in your life." — Confucius"Logic will get you from A to B. Imagination will get you everywhere." — Albert Einstein"Money is the most egalitarian force in society. It confers power on whoever holds it." — Roger Starr{General Programming Forum FAQ} | {Blog/Journal} | {e-mail me} | {excellent webhosting}
#3 Members - Reputation: 157
Posted 08 February 2005 - 11:27 AM
Quote:
Q: "You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?"
I quickly realize that even if I get out, I am only the size of a nickel, and will probably never get laid again, so I place my neck on the blade and close my eyes till my 60 seconds are up.
#4 Members - Reputation: 1135
Posted 08 February 2005 - 11:33 AM
Quote:
Original post by kSquared
Q: "You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?"
You're the height of a nickel, the blades won't touch you on any blender I've ever seen. So sit back and ponder a solution at your leisure, there's really no rush.
Quote:
Original post by kSquared
Q: "Explain a database in three sentences to your eight-year-old nephew."
I'm much to busy explaining to the lad why my brother doesn't realize he exists to be worried about silly things like databases.
Quote:
Original post by kSquared
Q: "How many gas stations would you say there are in the United States?"
Enough.
Boy did you get them wrong.
CM
#5 Members - Reputation: 1099
Posted 08 February 2005 - 11:38 AM
Quote:Darn, you beat me to it!
Original post by Conner McCloud Quote:You're the height of a nickel, the blades won't touch you on any blender I've ever seen. So sit back and ponder a solution at your leisure, there's really no rush.
Original post by kSquared
Q: "You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?"
#6 Members - Reputation: 322
Posted 08 February 2005 - 11:39 AM
#7 Members - Reputation: 1356
Posted 08 February 2005 - 11:43 AM
Quote:
Original post by Jesper T
If your height was halved you'd only need one fourth the muscle power (take a look at small animals, they all have relatively much smaller limbs than larger ones). If you were reduced to the height of a nickel you would not only be able to lift many times your own weight, your body would quite possibly tear itself apart.
I guess I should have answered, "I do nothing, because I will shortly implode and die from unbearable tensile forces." ;)
#9 Members - Reputation: 290
Posted 08 February 2005 - 11:45 AM
Quote:
Original post by kSquared
"You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?"
I'm confused, if you're the height of a nickel and you're thrown into a blender, wouldn't the fall kill or seriously injure you?
#10 Members - Reputation: 913
Posted 08 February 2005 - 11:48 AM
Quote:
Original post by coldacid
Since your density is the same, you weigh much, much less. Being that small means that the wind pressures created in the blender will toss you into the blades, so just sitting and pondering will get you nowhere except dead.
But if it is truly an empty blender then there is no air to suck you up into the blades.
Your only real task is trying to figure out how to breath.
#12 Members - Reputation: 674
Posted 08 February 2005 - 11:58 AM
Quote:
Original post by OBeH Quote:
Original post by kSquared
Q: "How many gas stations would you say there are in the United States?"
No no no
The right answer is "Hang on, lemme check google." :)
[lol][lol]
Interesting interview though, what job are you applying for exactly?
#14 Members - Reputation: 2076
Posted 08 February 2005 - 12:13 PM
Move (swim) to the middle. The blades of the blender will generate a vortex/whirlpool, of which the calmest portion is the center - where there are also no blades.
Q: "How would you find out if a machine's stack grows up or down in memory?"
Data segment magic/voodoo. You want to declare two data segments and assign them to the same address, then instantiate local variables in each of them and compare their addresses.
msn12b posted something similar in General Programming that had been used at Bungie to test if a pointer was of a specific sort, or something like that.
Q: "How many gas stations would you say there are in the United States?"
I would probably have estimated geographically rather than by population. For instance, your estimate doesn't factor in multiple-car individuals. I believe there are more cars in the US than drivers, though, of course, not all of them need to be fueled at the same time.
Good job, though.
#15 GDNet+ - Reputation: 1146
Posted 08 February 2005 - 12:14 PM
Quote:
Original post by Oluseyi
Q: "You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?"
Move (swim) to the middle. The blades of the blender will generate a vortex/whirlpool, of which the calmest portion is the center - where there are also no blades.
The blender was empty. =X
#16 Members - Reputation: 739
Posted 08 February 2005 - 12:17 PM
Quote:
Original post by Salsa Quote:
Original post by Oluseyi
Q: "You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?"
Move (swim) to the middle. The blades of the blender will generate a vortex/whirlpool, of which the calmest portion is the center - where there are also no blades.
The blender was empty. =X
Wouldn't there still be a "tornado-tunnel effect" (for the lack of a better description) from the air, though? That would be lessened in the "eye".
#18 Members - Reputation: 157
Posted 08 February 2005 - 12:20 PM
If they simply remove actual molecules and atoms from your body, then you would be the height of a Jefferson nickel, 2.1cm. A person 6 feet in height is 1.8288m, or 182.88cm. Your size and mass would be reduced by a factor of 87.0857, let's just say 87. So the amount of blood that pumps through your veins is based on the surface area of your veins, or the hollow part of your veins to be exact. So the amount of blood being pumped is reduced by a factor of 87, but the surface area of the veins is reduced by a factor of 7569, so I am predicting your circulatory system would just cease to function properly. Every system in the body would have to be linearly scalable. Not to mention the fact that you just lost most of the neurons in your brain.
If your mass was simply minaturized somehow, as in you are made of smaller electrons than we are now, you would probably disappear and enter a parallel universe. You wouldn't interact with the rest of the universe in the same way. Your eletro-magnetic forces that keep you fram falling from the floor might not be strong enough and you could be sucked by gravity into the center of the earth. You would probabaly not be able to breath because your smaller lungs couldn't react with the big oxygen molecules. You may go blind if your eyes no longer reacted or detected light the same. A host of things could go wrong in this scenario when looked at from the chemical/atomic level.
Also, how would you make a rope from your clothes to hurl yourself out? What would you attach the rope to? And I don't think you could get a rop long enough to reach the top of the blender.
#19 Members - Reputation: 1356
Posted 08 February 2005 - 12:30 PM
Quote:
Original post by Oluseyi
Q: "How many gas stations would you say there are in the United States?"
I would probably have estimated geographically rather than by population. For instance, your estimate doesn't factor in multiple-car individuals. I believe there are more cars in the US than drivers, though, of course, not all of them need to be fueled at the same time.
Interesting responses -- I really wish I could have given the "there is no escape -- I die" answer to the blender one, but I'm not sure that would have gone over well. I did mention this sentence though:
Quote:
that the number of people who own more than one car is negligibly small relative to the total American population.
#20 Members - Reputation: 834
Posted 08 February 2005 - 12:43 PM
So you definitely have to try to escape. Since the blades create a lot of windflow, there must be some drafts that could pull you up- I think the way they would work is that the air comes down the center of the blender area, and up the sides. So you could try to hug one of the side walls and see if the wind will push you to the top?
Either that or you could do a funny dance, in the hopes that your malicious captor will find you entertaining and choose to spare you.






