Kirve and Bananas
CodeChefOpen on judge ↗
One weird contest is organized in a college. Each participant will be provided with a matrix of $R$ rows and $C$ columns. Each cell of the matrix will contain a specific number of Bananas. A participant has to find a path from zeroth row to last row such that he/she will have maximum Bananas at the end. Organizers have put one conditions in front of contestants. - $Condition $: Contestant can go
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start