celsoaramos / bananas Goto Github PK
View Code? Open in Web Editor NEWLooking for Bananas in the Monkeys island Given a Jungle in the middle of an island of n*m dimensions. Each field in this jungle contains a positive integer which is the amount of bananas that exist in that field. Initially the monkey is at first column but can be at any row. The monkey can move only (right->,right up /,right down\) from a given cell. Find out the maximum amount of bananas they can collect.