Prison Escape
CodeChefOpen on judge ↗
Rhonda got arrested in a police chase. He is trying to escape the high-tech prison he is held captive in. He needs a pass-code $P$ for disabling all the cameras in order to escape. Pass-code is the solution of matrix problem given below. Help him finding the pass-code. You are given a matrix of order $N * N$. Each cell in a matrix has a value $A_{i,j}$ $(0 <= i, j < N)$, which is either positive
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