Thread: Two beers
View Single Post
Sep18-04, 11:45 AM
P: 646
The algorithm :-
1>Buy two bottles
2>Drink them one after another
3>Buy two more
4>Drink them alternately
5> if no decision can be made repeat steps 1 to 4 till decision can be made

ofcourse this is an infinite loop

-- AI