会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
安德
博客园
首页
新随笔
联系
订阅
管理
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)
编辑
公告