数据结构
文章平均质量分 93
douglaslee01
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pat中有关于排队模拟的问题
1017. Queueing at Bank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the wai...原创 2018-03-15 09:39:16 · 439 阅读 · 0 评论 -
pat中关于并查集的题目&&以及类似dfs解法
点击打开链接:https://www.patest.cn/contests/pat-a-practise/1013并查集:主要是find和union函数:void unionn(int a,int b){ int x=find(a); int y=find(b); if(x!=y){ pre[x]=y; } }int find(int k){ ...原创 2018-03-17 12:05:57 · 258 阅读 · 0 评论 -
与树相关的pat题目
1.1020:1020. Tree Traversals (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder tr...原创 2018-03-14 12:59:26 · 365 阅读 · 0 评论
分享