← All problemsSign in

KorbiosGrid

Korbio has a got a grid full of apples(Size of grid-MxN),He can pick a cell from every row and collect all the apples in the cell, however he has a restriction,if he picks the cell in jth column and ith row,for the i+1 th row,he can pick a cell only from columns j to N. With this condition in mind he has to collect apples from rows,he needs to collect maximum no of apples,please help him. ###Inp

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start