
数据结构与算法
hithithithithit
王牌飞行员会损失约11架战机。
展开
-
二叉树相关操作及具体实现(872操作系统与算法)
二叉树对于大部分初学者来说是很难理解的知识点,特别是递归的应用和非递归遍历的实现。 此处给出了大部分的二叉树相关算法,希望可以帮助到一些人。 #include<iostream> #include<cstdio> #include<queue> #include<stack> //创建队列:queue<int> Q; //进队:q.push(data); //队尾队首元素:q.back();q.front(); //出队:q.p...原创 2020-11-30 16:21:04 · 240 阅读 · 0 评论 -
顺序表相关操作及具体实现
关于C语言处理顺序表的一些基本算法 #include<stdio.h> #define OK 1 #define ERROR -1 #define TRUE 1 #define FALSE -1 #define MAXSIZE 20 typedef int Status; typedef int ElemType; typedef struct List { ElemType data[MAXSIZE]; ElemType length; }SqList; void initList(原创 2020-11-28 20:55:50 · 263 阅读 · 0 评论