Traveller Chef
CodeChefOpen on judge ↗
As we know that nowadays little Chef is travelling a lot ! One day, Little chef went to a mysterious country. The structure of the country can be described by a 2-D grid. Where each cell of the grid represents a town. Therefore, we can represent any town by a pair of integers (x, y). Which means that the town is located at the xth row (0 ≤ x) and yth column (0 ≤ y) of the grid. Moreover, for tran
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