摘要: On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0.A move consists of choosing 0 and a 4- 阅读全文
posted @ 2018-09-19 09:29 jasminemzy 阅读(425) 评论(0) 推荐(0) 编辑
摘要: We have a grid of 1s and 0s; the 1s in a cell represent bricks. A brick will not drop if and only if it is directly connected to the top of the grid, 阅读全文
posted @ 2018-09-19 08:27 jasminemzy 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the 阅读全文
posted @ 2018-09-19 07:04 jasminemzy 阅读(255) 评论(0) 推荐(0) 编辑
摘要: This question is about implementing a basic elimination algorithm for Candy Crush.Given a 2D integer array board representing the grid of candy, diffe 阅读全文
posted @ 2018-09-19 06:41 jasminemzy 阅读(413) 评论(0) 推荐(0) 编辑