上一页 1 ··· 3 4 5 6 7
摘要: 题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=[1,1,1,2,2,3],Your function should... 阅读全文
posted @ 2015-05-17 20:48 可爱的波儿胖 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"Corner Cases:Did you con... 阅读全文
posted @ 2015-05-15 10:38 可爱的波儿胖 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],... 阅读全文
posted @ 2015-04-30 15:24 可爱的波儿胖 阅读(238) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7

友情链接 : CodeForge源码分享