随笔分类 - 数据结构
一个想让人疯掉的东西丶
摘要:Status CreatAscend(LinkList &L,int n) { int j; LinkList p,q,s; if(n<=0) return ERROR; InitList(L); printf("请输入%d个元素:\n",n); s=(LinkList)malloc(sizeof(
阅读全文
摘要:#include<stdio.h>#include<malloc.h> typedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList; void CreateList(LinkList &L,int n){ L=(LinkLi
阅读全文
摘要:#include<stdio.h>#include<malloc.h>#include<string.h>typedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList; void CreateList(LinkList &L,
阅读全文
摘要:二叉树的相关操作:包括先序序列+中序序列建树丶后序序列+中序序列建树丶层次序列+中序序列建树;先序遍历丶中序遍历丶后序遍历丶层次遍历;二叉树的深度及最大宽度;度分别为0,1,2的节点个数以及总结点个数 #include<stdio.h> #include<malloc.h> #include<std
阅读全文

浙公网安备 33010602011771号