摘要: 1. 给定四个API,move()turnLeft(),turnRight(),clean(). move():如果机器人可以往前一格,就会移到往前并回传true,否则false。 ()即将机器人向左转,clean()就是清理所在位置 要求机器人扫除所有可走空间。 基本上就dfs做呗用相对出发点的座 阅读全文
posted @ 2018-02-11 09:58 jxr041100 阅读(707) 评论(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, diff 阅读全文
posted @ 2018-02-11 01:59 jxr041100 阅读(406) 评论(0) 推荐(0) 编辑
摘要: Given a set of words (without duplicates), find all word squares you can build from them. A sequence of words forms a valid word square if the kth row 阅读全文
posted @ 2018-02-11 01:51 jxr041100 阅读(134) 评论(0) 推荐(0) 编辑