Hidden Cell
There is an $N \times N$ matrix. Let $(i, j)$ denote the cell in the $i$-th row and the $j$-th column, where the rows are numbered $0, 1, \ldots, N - 1$ from top to bottom and the columns are numbered $0, 1, \ldots N-1$ from left to right. There is a hidden cell $(a, b)$. It is known that this cell doesn't lie on the boundary of the matrix. That is, $\min(a, b) \geq 1$ and $\max(a, b) < N - 1$.
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