首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Chapter 三 Stacks and Queues - 3.5

2012-08-09 
Chapter 3 Stacks and Queues - 3.5Problem 3.5: Implement a MyQueue class which implements a queue us

Chapter 3 Stacks and Queues - 3.5
Problem 3.5: Implement a MyQueue class which implements a queue using two stacks.

The word "two stacks" is a strong hint. I implemented my solution quickly.

The lesson: never stop thinking about optimization!!!

热点排行