3568. Minimum Moves to Clean the Classroom
You are given an m x n grid classroom where a student volunteer is tasked with cleaning up litter scattered around the room. Each cell in the grid is one of the following: - 'S': Starting position of the student - 'L': Litter that must be collected (once collected, the cell becomes empty) - 'R': Reset area that restores the student's energy to full capacity, regardless of their current energy l
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