22SP - 05 Shifting Sands
CodeChefOpen on judge ↗
Brian is feeling adventurous so he flies to Algeria to observe the Sahara Desert. He keeps a journal about what he sees and in that journal he writes that he found a magical 4x4 grid of sand dunes. In this 4x4 grid, gusts of wind blow in any 4 of the cardinal directions and the wind is so strong that it moves the sand dunes. Each sand dune has an associated size given by an integer. Sand dunes ca
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