![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
lukeyewu
这个作者很懒,什么都没留下…
展开
-
链表的各种基本操作
1. 链表定义。#ifndef _LISTNODE_ #define _LISTNODE_ struct ListNode { int m_value; ListNode * m_pNext; }; #endif2. 初始化链表。void InitList(ListNode * L) { L = nullptr; cout << "InitList Success! " &...原创 2018-03-27 10:21:36 · 19153 阅读 · 0 评论 -
二叉树的七种遍历及部分操作
1. 二叉树结构体。 struct BinaryTreeNode { char m_cValue; BinaryTreeNode * m_pLeft; BinaryTreeNode * m_pRight; }; typedef BinaryTreeNode* BiTree; 2. 先序创建二叉树。 void CreateBTree(BiTree &T) //前序...原创 2018-03-24 10:44:57 · 288 阅读 · 0 评论 -
Hash表各种基本操作
1. 头文件common.h的内容。#include <iostream> #include <string> #include <stack> #include <fstream> #include <sstream> #include <vector> #include <ctime>//time.原创 2018-03-18 13:37:01 · 427 阅读 · 0 评论