• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
neverlandly
博客园    首页    新随笔    联系   管理    订阅  订阅
2015年2月7日
Lintcode: Implement Queue by Stacks
摘要: As the title described, you should only use two stacks to implement a queue's actions.The queue should support push(element), pop() and top() where po... 阅读全文
posted @ 2015-02-07 07:51 neverlandly 阅读(445) 评论(0) 推荐(1)
Lintcode: Hash Function && Summary: Modular Multiplication, Addition, Power && Summary: 长整形long
摘要: In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zer... 阅读全文
posted @ 2015-02-07 07:06 neverlandly 阅读(1769) 评论(1) 推荐(0)
Lintcode: Fizz Buzz
摘要: StringBuffer的用法,append方法的参数可以使boolean, char, char[], CharSequence, double, float, int, long, String, StringBuffer Better way: http://www.cnblogs.com/E 阅读全文
posted @ 2015-02-07 03:22 neverlandly 阅读(733) 评论(0) 推荐(0)
Lintcode: First Bad Version
摘要: The code base version is an integer and start from 1 to n. One day, someone commit a bad version in the code case, so it caused itself and the followi... 阅读全文
posted @ 2015-02-07 03:02 neverlandly 阅读(460) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3