摘要: 题目意思就是通过一系列翻煎饼的动作让整个堆保持递增顺序在学习STL 从网上复制了别人的代码学习一下。。非常简洁题目:Stacks of FlapjacksBackgroundStacks and Queues are often considered the bread and butter of data structures and find use in architecture, parsing, operating systems, and discrete event simulation. Stacks are also important in the theory of fo 阅读全文
posted @ 2013-11-23 16:14 doubleshik 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 题目是说给出一颗满2叉树 。 然后这些节点会下落,找出同一竖直位置叶子值之和。网上看到不用建树的方法比较简便题目:The Falling LeavesEach year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves accumulating under the trees. If the same thing happened to binary trees, h 阅读全文
posted @ 2013-11-23 11:48 doubleshik 阅读(155) 评论(0) 推荐(0) 编辑