DEV Community

Discussion on: Amazon Coding Interview: Robot Return to Origin (LeetCode)

Collapse
codinglanguages profile image
Your DevOps Guy

Follow up: How would you extend this to N dimensions?

Assuming you get the pairs of opposite directions (U-D, L-R, etc.)