
数据结构
菜鸟502
我只是一个菜鸟!
展开
-
二叉树基本结构和算法
二叉树链式存储结构typedef struct BiTNode{ char data; BiTNode *lchild, *rchild;} BiTNode, *BiTree;二叉树创建(递归)void create_bitree(BiTree &T){ char value; cin >> value; if(value == '#')原创 2016-07-20 11:28:41 · 469 阅读 · 0 评论 -
二叉树的非递归前序、后序遍历
题目来源: https://leetcode.com/problems/binary-tree-preorder-traversal/ https://leetcode.com/problems/binary-tree-inorder-traversal/ struct TreeNode { int val; TreeNode *left; TreeNode *ri原创 2016-07-20 11:34:33 · 329 阅读 · 0 评论 -
无向图的邻接矩阵基本操作
无向图的邻接矩阵基本操作原创 2016-07-20 21:21:24 · 8501 阅读 · 0 评论 -
链式存储无向图的基本操作
链式存储无向图的基本操作原创 2016-07-20 21:29:49 · 1436 阅读 · 0 评论 -
138. Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.Subscribe to see which companies asked原创 2016-09-12 22:53:40 · 343 阅读 · 0 评论