Boring Class
CodeChefOpen on judge ↗
In a boring class at XYZ college, students tend to fall asleep easily. In the class at any second, a student sitting at some place sleeps if there is a person sitting at a Manhattan distance less than $d$ in the previous second or if the seat is a blind spot. The Manhattan distance $d$ between two points is measured as |$X_2$-$X_1$| + |$Y_2$-$Y_1$|. You are given a 2-D matrix which represents th
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