Gotta Catch them all
CodeChefOpen on judge ↗
Palet town has P areas. Each area can be thought of as a 2xN grid where each cell represents a Pokemon. Every cell in the area contains a single lowercase character denoting the first character of the pokemon corresponding to that cell. You can catch a pokemon by moving from one place to another. But you can only move by 1 step from each cell only in either horizontal or in vertical direction. Di
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