Given a grid/matrix and a list of movement commands (e.g., Up, Down, Left, Right or directional steps), simulate the movements and determine the final cell coordinates where you end up.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.