Search
⌘K
Get Premium
Leetcode 874. Walking Robot Simulation
Simulate a robot on an infinite grid executing turn commands and unit-step moves, stopping any step that would hit an obstacle and updating its facing direction as instructed. Use fast obstacle lookup (e.g., a hash set) while stepping through commands to track and return the maximum squared Euclidean distance from the origin reached.
Asked at:
Apple
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid November, 2025
Meta
Senior
Mid February, 2025
Meta
Mid-level
Mid January, 2025
Apple
Mid-level
Walking robot simulation
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.