![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 78
Scutware
这个作者很懒,什么都没留下…
展开
-
ZOJ Problem Set - 2348
原题:Hire and FireTime Limit: 2 Seconds Memory Limit: 65536 KBIn this problem, you are asked to keep track of the hierarchical structure of an organization's changing staff. As the fi原创 2013-05-08 18:05:56 · 966 阅读 · 1 评论 -
[面试题]找BST中的第K大结点
上次参加微信一面的笔试中的最后一道。当时考虑了递归,觉得效率不好,犹豫中没做完,不甘心所以回学校又写了一遍。主要使用栈,核心代码特别简单。如图: 完整的源码如下:#include using namespace std;struct Node{ int value; Node * left; Node * right;};struct BST原创 2013-05-29 15:21:35 · 962 阅读 · 0 评论