摘要:
Edward, the emperor of the Marjar Empire, wants to build some bidirectional highways so that he can reach other cities from the capital as fast as pos 阅读全文
posted @ 2016-04-25 22:39
cleverbiger
阅读(226)
评论(0)
推荐(0)
摘要:
跳跃游戏 给定一个非负整数数组,假定你的初始位置为数组第一个下标。 数组中的每个元素代表你在那个位置能够跳跃的最大长度。 请确认你是否能够跳跃到数组的最后一个下标。 例如: A = [2,3,1,1,4], return true. A = [3,2,1,0,4], return false. 格式 阅读全文
posted @ 2016-04-25 21:58
cleverbiger
阅读(227)
评论(0)
推荐(0)
摘要:
马走日 湖是什么,对于在象棋界厮杀的大钉来说,江湖就是一个矩阵,他的目标,就是在江湖之中骑着马,从他的位置出发,走到终点。 当然,大钉的马也遵从中国象棋中的“马走日”的规则,而且在矩阵中,也会有一些障碍物,马不能跳到障碍物上;如果大钉的马面前有障碍物,即被“别马腿”,那么他将不能跳向有障碍物的左前和 阅读全文
posted @ 2016-04-25 20:31
cleverbiger
阅读(413)
评论(0)
推荐(0)
摘要:
Candy There are NNN children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the foll 阅读全文
posted @ 2016-04-25 19:53
cleverbiger
阅读(200)
评论(0)
推荐(0)
浙公网安备 33010602011771号