A man has a lion,a goat n grass...he has 2 pass though the river with one boat,...

ahmarali

New member
Joined
Mar 9, 2010
Messages
1
Reaction score
0
Points
1
...but...? A man has a goat, a lion and some grass. Now the man has to cross the river with the availibility of one boat only which can carry only two people/thing at a time. Now the problem is that if the man takes the grass first then behind him the lion will eat the goat or if he takes the lion first then the goat will eat the grass......HOW CAN THE MAN TAKE ALL THREE OF THEM SAFELY ACROSS THE RIVER? But I need the algorithm
 
he takes the goat first. then he slaughters it in the middle of the river and eats it, because goat meat is good.
 
Take the goat across first, come back and get the grass, take the grass to the other side and pick up the goat again, drop off the goat and pickup the lion, drop the lion off where the grass is at and go back and get the goat again.
 
i guess he take the goat 1st followed by grass & lion?
 
Back
Top