Volcano
CodeChefOpen on judge ↗
There is a mountain on Planet Credenz which can be represented by a 2D matrix X of size MxN. Each element of the matrix represents the altitude (height) of the mountain at that location. The mountain has an active volcano which can erupt at any time. The volcano will erupt from a location ( i , j ) which will be specified in the input. The Lava will then flow from that position to other positions
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