摘要: 标题:Simplify Path通过率:20.1%难度:中等Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", ... 阅读全文
posted @ 2015-04-09 21:27 pku_smile 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 标题:Number of Islands通过率:22.8%难度:中等Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and... 阅读全文
posted @ 2015-04-09 15:52 pku_smile 阅读(265) 评论(0) 推荐(0) 编辑