![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 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 · 367 阅读 · 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 · 195 阅读 · 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 · 297 阅读 · 0 评论