The Magic WhiteBoard
CodeChefOpen on judge ↗
The Electronics and Communication department at Thapar is developing a new game. The game consists of a board. The board contains NxN squares/blocks (i.e N blocks width wise and N blocks length wise). The blocks can have any color apart from white. The game goes this way, if you touch any block(say its color is C) it will change to white and all the surrounding blocks that will have color C will
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