240
笔下虽有千言,胸中实无一策
摘要: [Problem] 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 destin 阅读全文
posted @ 2017-08-30 22:59 CasperWin 阅读(963) 评论(0) 推荐(0) 编辑
摘要: [Problem] 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 f 阅读全文
posted @ 2017-08-30 04:42 CasperWin 阅读(568) 评论(0) 推荐(0) 编辑