• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
中二病程序猿
博客园 首页 新随笔 联系 订阅 订阅 管理

2014年7月10日

CTCI 3.6
摘要: Write a program to sort a stack in ascending order (with biggest items on top). You may use at most one additional stack to hold items, but you may no... 阅读全文
posted @ 2014-07-10 22:14 中二病程序猿 阅读(205) 评论(0) 推荐(0)
 
CTCI 3.5
摘要: Implement a MyQueue class which implements a queue using two stacks./*Use two stacks, when enqueue, first pop all the elements in stack2 on stack1, th... 阅读全文
posted @ 2014-07-10 21:05 中二病程序猿 阅读(129) 评论(0) 推荐(0)
 
CTCI 3.3
摘要: Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ... 阅读全文
posted @ 2014-07-10 10:33 中二病程序猿 阅读(394) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3