数据结构
Frisky_Puppy
大一学生一枚, 纯粹学习, 并对一些技术性博客发表自己的见解, 最后感谢CSDN平台!
展开
-
二叉树先序遍历-普通迭代
// // main.cpp // Tree_of_mooc // // Created by 王朗 on 2018/5/29. // Copyright © 2018年 王朗. All rights reserved. // #include <iostream> #include <stack> using namespace std; #define Bin...原创 2018-05-30 15:18:34 · 173 阅读 · 0 评论 -
二叉树先序遍历-迭代新思路
因为时间实在是十分的紧,所有的代码都是伪码。 #include <iostream> #include <stack> using namespace std; typedef struct BinNode { int data; struct BinNode * lchild; struct BinNode * rchild; } BinN...原创 2018-05-30 15:37:52 · 161 阅读 · 0 评论 -
Huffman编码
#include <iostream> #include <stack> #include <map> #include <iterator> #include <vector> using namespace std; typedef struct huffman_node { char c; int w; s...原创 2018-05-31 11:12:48 · 171 阅读 · 0 评论