Quote:
|
Originally Posted by amit_GNE
You've got someone working for you for seven days and a gold bar to pay them. The gold bar is segmented into seven connected pieces. You must give them a piece of gold at the end of every day. If you are only allowed to make two breaks in the gold bar, how do you pay your worker?
|
Dude
1 Cut the bar between 1 & 2
2 Cut the bar between 3 & 4
Now u get 3 pieces with lengths 1,2,4resp.
day 1: give 1 u have remaining 2 and 4
day 2: give 2 take back 1 u have remaining 1 and 4
day 3: give 1 u have remaining 4
day 4: give 4 take back 1 and 2 u have remaining 1 and 2
day 4 give 1 u have remaining 2
day 6: give 2 take back 1
day 7: give 1 u have nothing remaining
luv
Kartik C