数据结构
文章平均质量分 78
Scutware
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ZOJ Problem Set - 2348
原题: Hire and Fire Time Limit: 2 Seconds Memory Limit: 65536 KB In 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 · 1047 阅读 · 1 评论 -
[面试题]找BST中的第K大结点
上次参加微信一面的笔试中的最后一道。当时考虑了递归,觉得效率不好,犹豫中没做完,不甘心所以回学校又写了一遍。主要使用栈,核心代码特别简单。如图: 完整的源码如下: #include using namespace std; struct Node { int value; Node * left; Node * right; }; struct BST原创 2013-05-29 15:21:35 · 1048 阅读 · 0 评论
分享