← All problemsSign in

Gods of Death Love Apples

A matrix of size $N X N$ has some apples in each cell. Ryuk is on the top-left cell of the matrix. He wants to go to the bottom-right cell but there are some restrictions on his movement. He can only move towards East or South from the current cell. In other words, If he is currently on $i-th$ row and $jth$ column, he can either go to $(i+1)^{th}$ row $j^{th}$ column or $i^{th}$ row $(j+1)^{th}$ c

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