Isha and Ruined Floor
CodeChefOpen on judge ↗
Isha's floor is ruined due to wall painting. So she decided to clean the floor. Floor is in divided into (N + 1) x N square cells of equal size like a matrix. Some of these cells are clean, others aren't. To clean the floor she built a device, Robo, which sweeps the floor doing horizontal and vertical strips. Each strip is N cell length long and 1 cell length wide. Robo can change direction o
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