Algorithm · Snowflake · Medium
Requirements The grid already exists in the DOM, and utility functions for reading cells and updating their appearance are available. A robot begins at a specified grid position, while candies occupy a given set of positions. Write the JavaScript behavior that moves the robot across the grid and deletes each candy when the robot enters its cell. The movement model will be confirmed during the interview: the robot may respond to player input, or it may independently follow…
Checking your access…