Available question text
Find the minimum moves to collect all 'L' cells in a grid where each step costs 1 energy, obstacles block movement, and landing on 'R' fully restores your finite energy; if energy hits 0 you can only continue from an 'R'. This requires searching an augmented state space (position, remaining energy, collected-litter bitmask) — effectively a shortest-path / TSP-like search with recharge nodes to determine feasibility and minimum steps.
Related questions
Continue with questions that share topics or the same question type.
- Minimum Difference Between Largest and Smallest Value in Three Moves
Coding
- Minimum Knight Moves
Coding · A* Search · Bidirectional Search · Breadth-First Search
- Minimum Moves to Capture The Queen
Coding
- Minimum Moves to Convert String
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3568. Minimum Moves to Clean the Classroom
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source