会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
往心、
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
27
下一页
2022年7月20日
数据结构复习代码——图的邻接表的基本操作的实现(续)
摘要: 1、图的邻接表的基本操作的实现 //删除两点之间的边 void RemoveEgde(GraphLnk *g,T vertex1,T vertex2) { int v1 = GetVertexPos(g,vertex1); int v2 = GetVertexPos(g,vertex2); if(v
阅读全文
posted @ 2022-07-20 15:13 往心。
阅读(94)
评论(0)
推荐(0)
2022年7月16日
数据结构复习代码——图的邻接表的基本操作的实现
摘要: 1、图的邻接矩阵的基本操作的实现 #include<stdio.h> #include<malloc.h> #include<assert.h> #define Default_Vertex_Size 10 #define T char //图的定义 typedef struct GraphMtx
阅读全文
posted @ 2022-07-16 19:50 往心。
阅读(95)
评论(0)
推荐(0)
2022年7月14日
数据结构复习代码——图的邻接矩阵表示法实现
摘要: 1、图的邻接矩阵表示法实现 #include<stdio.h> #include<malloc.h> #include<assert.h> #define Default_Vertex_Size 10 #define T char //图的定义 typedef struct GraphMtx { i
阅读全文
posted @ 2022-07-14 17:28 往心。
阅读(154)
评论(0)
推荐(0)
2022年7月13日
数据结构复习代码——练习题(leet)
摘要:
阅读全文
posted @ 2022-07-13 17:30 往心。
阅读(32)
评论(0)
推荐(0)
2022年7月8日
数据结构复习代码——基于线索二叉树实现下相关方法的实现
摘要: 1、基于线索二叉树实现下相关方法的实现 void InitBinTree(BinTree *bt,ElemType ref); //递归实现线索二叉树 void CreateBinTree(BinTree *bt, char *str); void CreateBinTree(BinTree *bt
阅读全文
posted @ 2022-07-08 20:11 往心。
阅读(32)
评论(0)
推荐(0)
2022年7月7日
数据结构复习代码——线索二叉树的实现
摘要: 1、线索二叉树的实现 #include<stdio.h> #include<assert.h> #include<malloc.h> #define ElemType char typedef enum{LINK,THREAD}Tag_Type; typedef struct BinTreeNode
阅读全文
posted @ 2022-07-07 20:25 往心。
阅读(55)
评论(0)
推荐(0)
2022年7月6日
数据结构复习代码——非递归实现二叉树的遍历方法
摘要: 1、非递归实现二叉树的遍历方法 1、非递归 后序遍历 #include<stdio.h> #include<assert.h> #include<malloc.h> #include"PostStack.h" #define ElemType char typedef struct BinTreeN
阅读全文
posted @ 2022-07-06 20:14 往心。
阅读(77)
评论(0)
推荐(0)
2022年7月5日
数据结构复习代码——递归实现二叉树的创建、前中后序遍历、层次遍历、求节点个数、求树高
摘要: 1、递归实现二叉树的创建、前中后序遍历、层次遍历、求节点个数、求树高等操作 #include<stdio.h> #include<assert.h> #include<malloc.h> #include"LinkQueue.h" #define ElemType char typedef stru
阅读全文
posted @ 2022-07-05 20:17 往心。
阅读(54)
评论(0)
推荐(0)
2022年7月4日
数据结构复习代码——递归实现二叉树的定义以及创建
摘要: 1、递归实现二叉树的定义以及创建 #include<stdio.h> #include<assert.h> #include<malloc.h> #define ElemType char typedef struct BinTreeNode { ElemType data; struct BinT
阅读全文
posted @ 2022-07-04 19:44 往心。
阅读(82)
评论(0)
推荐(0)
2022年7月3日
数据结构复习代码——递归实现广义表的创建以及遍历
摘要: 1、递归实现广义表的创建以及遍历 #include<stdio.h> #include<assert.h> #include<stdlib.h> #include<string.h> #include<malloc.h> #define AtomType int typedef enum{HEAD,
阅读全文
posted @ 2022-07-03 21:03 往心。
阅读(197)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
27
下一页
公告