Primal Instincts
CodeChefOpen on judge ↗
Given a 3x3 matrix of numbers from 0-9 (inclusive), you can form a new number by starting from any position in the matrix, taking that number and then visiting any of its unvisited neighbor and appending the integer at that position to the number formed till now and continuing in the same fashion. You can no longer append integers, if there is no neighbor of the last integer used which is still un
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