2015年6月29日

摘要: 题目:Majority Element IIGiven an integer array of sizen, find all elements that appear more than⌊ n/3 ⌋times. The algorithm should run in linear time an... 阅读全文
posted @ 2015-06-29 18:32 安德 阅读(108) 评论(0) 推荐(0) 编辑
 
摘要: 题目:Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"我的解答:/** * @param {st... 阅读全文
posted @ 2015-06-29 15:17 安德 阅读(158) 评论(0) 推荐(0) 编辑