← All problemsSign in

You are given a grid of $N x N$. Determine whether there is a path from (1, 1) to (n, n) which consists of only even number. The columns are numbered from left to right (1,2....n). The rows are numbered top to bottom (1,2,....n). You are allowed only to move down or right ###Input: - The first line will contain $N$, size of the grid. - Next $N$ lines will have $N$ integers portraying the grid.

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