摘要: Given a 2D grid, each cell is either a wall 2, a zombie 1or people 0 (the number zero, one, two).Zombies can turn the nearest people(up/down/left/righ 阅读全文
posted @ 2017-03-05 13:44 璨璨要好好学习 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: Given a knight in a chessboard (a binary matrix with 0 as empty and 1 as barrier) with a source position, find the shortest path to a destinationposit 阅读全文
posted @ 2017-03-05 12:57 璨璨要好好学习 阅读(466) 评论(0) 推荐(0) 编辑
摘要: Given a undirected graph, a node and a target, return the nearest node to given node which value of it is target, return NULL if you can't find. There 阅读全文
posted @ 2017-03-05 07:12 璨璨要好好学习 阅读(821) 评论(0) 推荐(0) 编辑
摘要: Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return the maximum enemies you can kill using one bomb.T 阅读全文
posted @ 2017-03-05 06:05 璨璨要好好学习 阅读(162) 评论(0) 推荐(0) 编辑