1) go to 1000/3 with 1000 babanas, reserves 1000/3 at 1000/3 position
2) same as 1)

now there are 2000/3 bananas at 1000/3 position.

3) go to 1000/3 position with 1000 babanas, then there are (2000/3 +
1000 - 1000/3) = 4000/3 babanas
4) go to (1000/3 + (4000/3 -1000)/3) = 4000/9 position with 1000 bananas
4) go ahead and finally have (1000 -  (1000 - 4000/9)) = 4000/9 = 444.444444

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to