上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: 1043: 1 //代码量较大的一道题,但还是考的BST的基本操作 2 //这道题要求判断原始序列是同先序序列相同还是与镜像先序序列相同,所谓镜像就是交换左右子树,只要在遍历的时候 3 //先遍历右子树在遍历左子树就可以解决这个问题了 4 //需要注意的一点是在插入的时候如果插入键值x小于节点的键值 阅读全文
posted @ 2022-11-24 16:24 江上舟摇 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1032: 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); 4 #define int long long 5 co 阅读全文
posted @ 2022-11-24 16:19 江上舟摇 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1003: 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define int long long 4 #define IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); 5 co 阅读全文
posted @ 2022-11-24 16:17 江上舟摇 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 图的判断: https://pintia.cn/problem-sets/994805342720868352/exam/problems/994805351814119424 https://pintia.cn/problem-sets/994805342720868352/exam/proble 阅读全文
posted @ 2022-11-24 15:46 江上舟摇 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 有点麻烦,有些知识点是盲点,留着明天学 题目: https://pintia.cn/problem-sets/994805342720868352/exam/problems/994805377432928256 https://pintia.cn/problem-sets/994805342720 阅读全文
posted @ 2022-11-20 19:37 江上舟摇 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 今天先整理二叉树,dijkstra和链表二刷过几天有空会整理 首先二叉树的几个性质就不说了,其中一个我认为比较好用的是满足二叉树连通,边数等于顶点数-1的结构就一定是一棵树 这次二刷的新的收获是分辨*root=NULL与root=NULL的不同之处,首先*root=NULL是不合法的 因为*root 阅读全文
posted @ 2022-11-18 20:38 江上舟摇 阅读(17) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/exam/problems/994805388447170560 https://pintia.cn/problem-sets/994805342720868352/exam/problems/994 阅读全文
posted @ 2022-11-18 20:19 江上舟摇 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 转载地址:https://blog.csdn.net/weixin_45313447/article/details/114318554?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166856136316800182722804% 阅读全文
posted @ 2022-11-16 09:17 江上舟摇 阅读(18) 评论(0) 推荐(0) 编辑
摘要: pat: 模考58分,相较夏季赛差了不少 1.模拟 给定一个字符串,要求按照得分点和失分点进行模拟,求最后得分即可 模拟比较难写 参考小柳学渣大神的代码,大神码风和思路都很好 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 阅读全文
posted @ 2022-11-06 18:52 江上舟摇 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 不好做的重载题: https://pintia.cn/problem-sets/994805342720868352/exam/problems/994805348471259136 阅读全文
posted @ 2022-11-04 19:22 江上舟摇 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页