Skip to interview prep
Apexed

Each cell of a grid holds some apples. Moving only right or down from the top-left to the bottom-right, collect the most apples. What changes if diagonal moves are allowed?

Content review

Report an error

Not yet reviewed

Data structures & algorithms368 of 395

EasyDynamic programming

Technical

This is ungraded practice. Run your solution and compare it with the model answer. Your drafts are saved in this browser.

Tab indents · Ctrl/⌘ + Enter runs · Esc then Tab leaves the editor

Getting your code editor ready…

Getting your answer ready…

Each cell of a grid holds some apples. Moving only right or down from the top-left to the bottom-right, collect the most apples. What changes if diagonal moves