← ALL NOTES
Design

2069. Walking Robot Simulation II

A robot walks the border of a width×height grid, starting at (0,0) facing East, moving counter-clockwise. step(num) advances num cells along the perimeter; getPos()/getDir() report position and…

Loading…