Magical Land
CodeChefOpen on judge ↗
Magical Land Problem Statement : Jack visits a magical land which is in the form of a matrix of size MXN. The magical land consists of various kind of cells. Some contains treasure which is denoted by T whereas some contain houses, trees, fairies, ghosts and stones which are denoted by A,B,C,D,E respectively. Jack wants to keep treasure but there is a condition that he can keep treasure contain
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