- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
The story said "the next round of interviews" so presumably this was in some stage of interviews that may have been on-site. Either way, not being able to do it is one thing, giving an answer so clearly stupid is another. I wouldn't call him in either based on that.
Admin
No, you would measure the volume of the 747.
You measure the weight of a 747 by disassembling it and weighing each part separately.
Admin
Good point. I will assume that I am in a resting state, ergo, my pulse should be, on average, constant. Begin measuring my pulse and start filling the 5 gallon container. Count the pulses.
Repeat this trial a few times and mentally take the average. Multiply by 4/5, and that's how many pulses you'll need to fill the container to four gallons. You can keep the 3 gallon container.
Admin
Admin
Admin
Admin
What's bizarre is that they expect to get a smart, capable kid who can type fast in Manhattan for $20 an hour. What that kind of money in NYC actually buys you is something else entirely, like maybe a hand job from a crack whore in Jersey.
Admin
For crying out loud.
Just give the customer the full five-gallon container.
The extra gallon doesn't cost you anything significant. You've saved the time needed to figure this out. You've avoided any chance of screwing up and giving the customer only three gallons. The customer is happy cuz he has 25% extra for free.
Admin
Admin
3 gallons should be enough for anyone.
Admin
That's an RTFM win right there.
Admin
Surely someone here must know the SQL statement that would calculate the weight of a 747?
Admin
I have a feeling that may cause another problem down the road.
Admin
Actually a hand job in Jersey isn't something you'd buy in NYC.
Admin
Mass balances are gravity-agnostic (well, they assume that over their span that gravity is the same, which means practically anywhere except near or in a black hole). They measure mass, not weight. Add in the mass of 4 gallons of water. Which depends on the type of gallon you're talking about...
Now, using a scale, that depends on the local gravity.
Admin
The real WTF is in the second to last paragraph:
...In early 2008, Braxton left Ellington Management Group, a leading mortgage trading hedge fund, where he was Head of MBS and ABS Credit Modeling...
So this is one of the guys responsible for tanking the economy, and we think he'll be able to run a start-up?
Admin
SELECT WeightInPoundsAtSeaLevelOnEarth FROM tblUselessWTFAirplaneData WHERE VehicleType='Boeing747'
Admin
How would you get four gallons of water? I'd get a four gallon container, and fill it.
What is the height of a 747 on the runway? Call the tower, ask for the elevation of the runway. Filled with fuel? Check the tires for proper air pressure.
Oh you mean what does the 747 weigh? Have it take off. Now it is in flight, and weightless. Answer = zero. Wait, what? Oh. Well then land it in the ocean and do something with the water. OK I'm getting confused here.
A 747, assuming the carpets were recently vacuumed, weighs exactly 217,454 quatloms. Prove me wrong.
Oh and you can take your puzzle job and shove it because while you and I were sitting here farting around your competition just invented facebook.
Admin
How to run a successful start-up if you're a complete moron who has already destroyed the world economy:
Admin
Fill the three gallon bottle while counting with a steady rhythm. Multiply the result by 4/3. Fill the five gallon bottle while counting to that number. Shut off the faucet.
Sell the four gallons to the customer while everyone else is spilling water all over themselves. Take the leftover 3 gallons with you and go collect your prize for saving Good Mother Earth by not wasting any water. Live happily ever after.
Admin
A colleague of mine with RSI once hired an "assistant programmer". Apparently it does help if they have programming experience and have typed code before.
Admin
I think a 'sever case' is something entirely different from carpal tunnel syndrome.
Admin
You're saying something in flight has no weight? Interesting. I believe your solution to the puzzle told me all I need to know
Admin
Why not simply take those 3 gallons, pour them into the 5 gallon jug and then pour for an additional 1/3 of the time?
Admin
And yet...he's right. It has everything to do with weight and nothing to do with mass.
Admin
... without taking a few blue pills first.
Admin
Even better, 4 kg of water is 4 liters, not 4 gallons. You'd want 32 pounds (a pint's a pound the world around, unless you lived in civilized nations where a pound is for dogs)
Admin
That, or you know, you have a little thing called ethics and deliver the proper answer becomes it comes naturally. I think this is a good question for business people, but not programmers.
Admin
Fill 3 gallon container. Pour into 5 gallon container. Mark the half-way point of the height of the remaining air space in the 5 gallon container, fill to that level.
Perfectly accurate if the container is perfectly cylindrical, will be a bit off if the container tapers. But you won't have wasted all that water you throw away using the "correct" solution.
Or, bring the 3 and 5 gallon jugs to the thrift shop and trade for a 4 gallon jug.
Admin
Well that would take forever. I would have it take off, measure the speed it was going when it left the ground and the angle of attack of it's wings, and calculate the lift. The lifting force should be equal to the weight at that point.
Admin
A plane in flight is no more weightless than a plane sitting on the ground. Simply because the counter force to gravity comes from aerolift produced by the wings rather than a reaction force from the ground does not mean it is weightless.
Go do some research on 'weightless' (perhaps google can help)
Admin
Meh, not just one right answer to me though this is probably assuming the interviewer isn't a geek...
I'm sure there are a ton more :)
Admin
Ok everyone, into the car.
Admin
Admin
Don't you realize? The Founder is a die hard programmer. But he has lost his vision.
Did ANY ONE OF YOU EVER THINK how YOU will fuel your passion for computing if this ever happens to you?..
Admin
Best question ever:
If a hen-and-a-half can lay an egg-and-a-half in a day-and-a-half, how many one-and-a-half egg omelettes can you make in a week-and-a-half?
Admin
It all depends, my dear, it all depends. Your "universal" answer does not consider the possibilities:
Admin
Does the car have a trunk or luggage ties on the roof?
Which is of course an asshole move in some ways since your friend presumably had something to do other than drive a dying guy to the hospital. Not to mention moving a dying person yourself is usually a bad thing compared to performing first aid while waiting for an ambulance. If nothing else it may very well take longer to drive to a hospital than it is to have an ambulance do it (speed limits, traffic lights, unfamiliar area, no idea where hospitals are, etc.).
Since neither my friend nor the woman have done that yet I can assume they're both useless. So the woman may look hot but honestly if she's that useless I doubt I'd want to deal with her after ten minutes. So no, love it is not. Still might be a good lay mind you.
Anyway. I'd have instead called an ambulance and did whatever the dispatcher said till the ambulance came. Then if I had something important to do and found the woman to be the bimbo I assume she is then I'd have just given my friend a lift. Plenty of hot bimbos in the world. If I did want to go for the woman I'd give my friend the car on the pretense that my friend was likely late and we weren't going to the same place. Then I'd wait with the woman on the bus stop, my display of trying to save the man's life while keeping the situation under control having likely increasing her view of me immensely (especially contrasted to my friend's uselessness).
I summary I found the expected answer to have the same lack of forethought that exemplifies badly designed products.
Admin
No, no, no -- A. Fill the three gallon bottle while counting, as above. B. Divide the result by 3 (giving you the "time" for 1 gallon). C. Pour the three gallon bottle into the 5 gallon bottle. D. Add water to the 5 gallon container for the time period indicated by B. E. Profit
That way, you don't have to use any scary fractions. And you don't waste any water.
Admin
I came up with a "lateral thinking" solution, though it does require the bottles to be transparent or translucent (but the problem description implied they were):
The only problem with this solution -- assuming you're forced to use your finger or thumbs to mark the position -- is that, obviously, 3-gallon and 5-gallon containers are much too big to be held with one hand, so you may have trouble keeping the place marked accurately. I think this solution is creative enough to at least allow some credit, though. TIMTOWTDI. :)
Admin
Craigslist shouldn't count as a WTF. 99% of those job postings are asking for slave labor. I see too many of those "We're making the next Facebook" and "10 years experience with this ginourmous list of skills" for $20/hr to go and look there seriously.
The candidates I've interviewed from job postings are also kind of a WTF also. I swear one of them was a closet skinhead.
Admin
(hope this wasn't in bad taste)
Admin
Admin
All these "time how long it takes to fill x" assume you can add water at a constant rate via some kind of tap or spigot. That wasn't stated in the problem. You could have a large tub of water and you need to fill the containers from that. Also, wasn't this puzzle from Lethal Weapon, not Die Hard? I seem to vaguely remember Danny Glover and Mel Gibson doing this and they had to fill the containers from the basin of a fountain or a bomb was going to explode.
Admin
I have a 4 gallon jug at home, if you just told me ahead of time, I would have brought it to the interview.
Admin
This^. The right answer absolutely depends on your objective. The "right" answer as the OP puts it suggests that your ultimate objective is to get in the girl's pants, which isn't the moral or ethical decision. The right answer would be to take the dying person to hospital yourself because a) Your friend was waiting for the bus anyway, if you hadn't come along, they'd still be wait, so no loss on their part and b) stop thinking with your dick.
Admin
Please take your metric snobbery elsewhere. Don't you people get it? Use of Imperial Units is a trade barrier-- sorta like the CE mark.
Admin
This sounds like interstate commerce. Careful or the federal government may take over your business.
Admin
Fill #1 & #2. Empty both over your head.
Captcha: nobis - how appropriate.
Admin
I'd take the dying person to the hospital myself - I can drive much faster than any of my friends.