
数据结构笔记
学习数据结构过程中的一些记录
Shanhj
无
展开
-
二叉树的四种遍历,包含递归和非递归实现
#pragma once#include <iostream>#include <stack>#include <queue>using namespace std;struct binary_tree{ binary_tree *lchild = 0; binary_tree *rchild = 0; int data;};/*递归写法*///先序遍历:root,lchild,rchildvoid pre_print(bina原创 2021-07-18 10:17:29 · 116 阅读 · 0 评论 -
数据结构课总结
当前总结了树的一些知识原创 2021-12-29 18:16:18 · 1862 阅读 · 0 评论