摘要: 题目 链接:https://ac.nowcoder.com/acm/contest/26886/A 来源:牛客网 时间限制:C... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(72) 评论(0) 推荐(0)
摘要: 文章目录 原题链接:A.Cirno’s Perfect Bitmasks Classroom思路代码 B.Patchouli’s Magical Talisman思路代码 C.Manipulating History思路代码 D.The Enchanted Forest思路代码 E.Railway 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(84) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/description/94/ 题面 \92. 递归实... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(60) 评论(0) 推荐(0)
摘要: #include#include #include //我这里的头以及尾巴与书上的不一样。typedef struct ArcNode{ int from, to; struct ArcNode * fnext, *tonext; int... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(73) 评论(0) 推荐(0)
摘要: 图的存储结构大赏------数据结构C语言(图) 本次所讲的是常有的四种结构: 邻接矩阵邻接表十字链表邻接多重表 邻接矩阵 概念 两... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(150) 评论(0) 推荐(0)
摘要: 目录 代码 代码 #include #include #include typedef struct ArcNode{ int to; struct ArcNode *next; int w;}ArcNode;typedef ... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(43) 评论(0) 推荐(0)
摘要: ​ 代码 代码 #include #include #include typedef struct ArcNode{ int to; struct ArcNode *next; int w;}ArcNode;typedef struct... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(55) 评论(0) 推荐(0)
摘要: 题解 这道题目说的很诡异,其实没有什么把括号补上。。。。仅仅是先序读入,然后中序输出就行了 代码 #include #include #include typedef struct TreeNode{ char data; struct Tr... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(91) 评论(0) 推荐(0)
摘要: 需要注意的点:在创建二叉树的函数中,如果len1==len2==0,一定要把(*T)置为NULL然后退出循环 #include #include #include typedef struct TreeNode{ char data; str... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(62) 评论(0) 推荐(0)
摘要: #include #include #include typedef struct TreeNode{ char data; struct TreeNode *LChild, *RChild;}TreeNode;void Create(Tre... 阅读全文
posted @ 2022-07-02 19:00 心坚石穿 阅读(54) 评论(0) 推荐(0)