随笔分类 -  simulation

874. Walking Robot Simulation
摘要:A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands: -2: turn left 90 degrees -1: turn right 90 degrees 1 set = new Ha... 阅读全文

posted @ 2018-11-09 11:36 猪猪🐷

755. Pour Water
摘要:We are given an elevation map, heights[i] representing the height of the terrain at that index. The width at each index is 1. After V units of water fall at index K, how much water is at each index? ... 阅读全文

posted @ 2018-11-09 06:45 猪猪🐷

723. Candy Crush
摘要:723. Candy Crush This question is about implementing a basic elimination algorithm for Candy Crush. Given a 2D integer array board representing the grid of candy, different positive integers board[i]... 阅读全文

posted @ 2018-10-09 02:58 猪猪🐷

353. Design Snake Game
摘要:353. Design Snake Game Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the game. The snake is initially positioned ... 阅读全文

posted @ 2018-10-09 02:56 猪猪🐷

导航