不积跬步,无以至千里;不积小流,无以成江海。——荀子

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 6 7 8 9 10

2017年9月19日

摘要: Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front 阅读全文
posted @ 2017-09-19 00:17 hejunlin 阅读(127) 评论(0) 推荐(0) 编辑

摘要: 题目大意:使用队列(queue)实现栈(stack)。 实现方式很简单,每次push进新元素之后,将队列里保存的元素重新从队首弹出,然后从队尾入队。 阅读全文
posted @ 2017-09-19 00:10 hejunlin 阅读(257) 评论(0) 推荐(0) 编辑

2017年9月18日

该文被密码保护。 阅读全文
posted @ 2017-09-18 01:37 hejunlin 阅读(19) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10