C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 04-23-2008, 05:46 PM   #1
Afraid of widths
 
medievalelks's Avatar
 
Join Date: Apr 2008
Location: Chicago
Posts: 887
Brain teaser #2

Again, don't spoil it if you've seen this before. It's from the same book as the other.

Five people are in a room with no windows, no furniture, etc. The floor is a cement slab. Embedded in the middle of the floor standing vertically is a foot long metal pipe. At the bottom of the pipe is a ping pong ball, with roughly 1mm of clearance all the way around.

Problem: Get the ball out of the pipe without damaging the ball, pipe, or floor. You have the following at your disposal: One carpenter's hammer, a 12" wood ruler, a 6" piece of string, a paper clip, and a refrigerator magnet.
medievalelks is offline   Reply With Quote
Old 04-23-2008, 05:51 PM   #2
Devil's Advocate
 
SlyMaelstrom's Avatar
 
Join Date: May 2004
Location: Out of scope
Posts: 3,778
Ummm... would one of my fellow occupants happen to be MacGyver?

I guess I have several questions (which clearly have nothing to do with the actual solution, because you would have mentioned them). Can the ruler fit in the pipe? can the hammer head fit in the pipe? is the magnet powerful enough to be pulled by the hammer head if the ball was in between? Is the string edible if I get bored?
__________________
Terms of Service
By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure.

Violators will be prosecuted to the fullest extent of the law.

Last edited by SlyMaelstrom; 04-23-2008 at 05:53 PM.
SlyMaelstrom is offline   Reply With Quote
Old 04-23-2008, 06:09 PM   #3
(?<!re)tired
 
Mario F.'s Avatar
 
Join Date: May 2006
Location: Portugal
Posts: 5,661
hmm...

Ideally the clip should somehow be put under the ball. Then the magnet would do the rest slowly pushing the paper clip up and, with it, the ball.

... I guess
__________________
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.


Mario F. is offline   Reply With Quote
Old 04-23-2008, 06:13 PM   #4
Afraid of widths
 
medievalelks's Avatar
 
Join Date: Apr 2008
Location: Chicago
Posts: 887
Recount the inventory of everything in the room besides the pipe and ball.
medievalelks is offline   Reply With Quote
Old 04-23-2008, 06:33 PM   #5
(?<!re)tired
 
Mario F.'s Avatar
 
Join Date: May 2006
Location: Portugal
Posts: 5,661
yes, yes. just thinking out loud here
__________________
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.


Mario F. is offline   Reply With Quote
Old 04-23-2008, 06:52 PM   #6
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,295
Well it's easy if MacGyver was there, just get him to build a death-ray, problem solved.


Seriously, I'd just suck the ball out of the pipe with my mouth
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 04-23-2008, 06:53 PM   #7
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
Quote:
Originally Posted by SlyMaelstrom View Post
Ummm... would one of my fellow occupants happen to be MacGyver?
You rang, sir?
__________________
MacGyver is offline   Reply With Quote
Old 04-23-2008, 07:07 PM   #8
& the hat of GPL slaying
 
Thantos's Avatar
 
Join Date: Sep 2001
Posts: 5,732
1) Leave the room
2) Go to a game store
3) Buy a new ping pong ball
4) Realize that paying the 50 cents for a new ball is much more time and cost efficient then trying to get the ball out of the pipe.

KISS baby
Thantos is offline   Reply With Quote
Old 04-23-2008, 07:09 PM   #9
Afraid of widths
 
medievalelks's Avatar
 
Join Date: Apr 2008
Location: Chicago
Posts: 887
Quote:
Originally Posted by zacs7 View Post
Seriously, I'd just suck the ball out of the pipe with my mouth
That's not it, but realizing that none of the items I listed are of any help is the first step to the real solution.

Also, are you married?
medievalelks is offline   Reply With Quote
Old 04-23-2008, 07:19 PM   #10
verbose cat
 
Join Date: Jun 2003
Posts: 209
I'll go the clean route, though I can imagine what is intended with 5 people...

Pour, uh, water into the pipe until the ball floats to the top. If we use anything else, I don't think I want the ping-pong ball that badly.
__________________
abachler: "A great programmer never stops optimizing a piece of code until it consists of nothing but preprocessor directives and comments "
jEssYcAt is offline   Reply With Quote
Old 04-23-2008, 07:27 PM   #11
Afraid of widths
 
medievalelks's Avatar
 
Join Date: Apr 2008
Location: Chicago
Posts: 887
Quote:
Originally Posted by jEssYcAt View Post
I'll go the clean route, though I can imagine what is intended with 5 people...

Pour, uh, water into the pipe until the ball floats to the top. If we use anything else, I don't think I want the ping-pong ball that badly.
Ding, ding!

You got it - float it out.
medievalelks is offline   Reply With Quote
Old 04-23-2008, 07:39 PM   #12
Just Lurking
 
Dave_Sinkula's Avatar
 
Join Date: Oct 2002
Posts: 5,006
http://www.youtube.com/watch?v=yrPb41hzYdw
__________________
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Dave_Sinkula is offline   Reply With Quote
Old 04-23-2008, 07:44 PM   #13
Afraid of widths
 
medievalelks's Avatar
 
Join Date: Apr 2008
Location: Chicago
Posts: 887
Quote:
Originally Posted by Dave_Sinkula View Post
If that chimp is so smart, how come he hasn't evolved yet? Dumb chimp.
medievalelks is offline   Reply With Quote
Old 04-23-2008, 07:45 PM   #14
(?<!re)tired
 
Mario F.'s Avatar
 
Join Date: May 2006
Location: Portugal
Posts: 5,661
Quote:
Originally Posted by medievalelks View Post
Ding, ding!

You got it - float it out.
Wow. A brain teaser in which the solution is not part of the problem. I've had better readings in my dentist waiting room.

EDIT: By the way, how does the book propose you fill the tube if there's no "windows, etc" - I presume this also means doors - spit my guts out into a 40mm diameter 1 foot tall pipe? Maybe cut myself with the paper clip and bleed to death into it...
__________________
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.



Last edited by Mario F.; 04-23-2008 at 07:51 PM.
Mario F. is offline   Reply With Quote
Old 04-23-2008, 08:01 PM   #15
Afraid of widths
 
medievalelks's Avatar
 
Join Date: Apr 2008
Location: Chicago
Posts: 887
Quote:
Originally Posted by Mario F. View Post
Wow. A brain teaser in which the solution is not part of the problem. I've had better readings in my dentist waiting room.

EDIT: By the way, how does the book propose you fill the tube if there's no "windows, etc" - I presume this also means doors - spit my guts out into a 40mm diameter 1 foot tall pipe? Maybe cut myself with the paper clip and bleed to death into it...
Think outside of the bladder.
medievalelks is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Brain teaser medievalelks General Discussions 20 04-24-2008 06:23 PM
Found a Brain Teaser golfinguy4 A Brief History of Cprogramming.com 3 04-26-2004 10:37 PM
Re: Girlfriend Post PsychoBrat A Brief History of Cprogramming.com 57 05-13-2002 06:11 AM
Brain Teaser... Paro A Brief History of Cprogramming.com 10 04-01-2002 12:30 PM
brain teaser dbaryl A Brief History of Cprogramming.com 10 11-07-2001 11:35 AM


All times are GMT -6. The time now is 05:16 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22