binarytree.h 头文件 binarytree.cpp文件 cirqueue.h头文件 paint.h头文件 paint.cpp文件 widget.h widget.cpp文件 main.cpp ...
分类:
其他好文 时间:
2019-03-02 10:58:41
阅读次数:
112
1、题目描述 2、问题分析 DFS。 3、代码 ...
分类:
其他好文 时间:
2019-03-02 10:39:19
阅读次数:
166
0x00前言: php存储session有三种模式,php_serialize, php, binary 这里着重讨论php_serialize和php的不合理使用导致的安全问题 关于session的存储,java是将用户的session存入内存中,而php则是将session以文件的形式存储在服务 ...
分类:
其他好文 时间:
2019-03-01 18:27:43
阅读次数:
213
https://www.cnblogs.com/Franck/p/3792926.html 二叉树是最常见最重要的数据结构之一,它的定义如下: 二叉树(binary tree)是有限多个节点的集合,这个结合或者是空集,或者由一个根节点和两颗互不相交的、分别称为左子树和右子树的二叉树组成。 二叉树最基 ...
分类:
其他好文 时间:
2019-03-01 15:34:11
阅读次数:
200
递归先序遍历+vector容器记录路径 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeN... ...
分类:
其他好文 时间:
2019-02-28 22:52:26
阅读次数:
244
Each year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves ...
分类:
其他好文 时间:
2019-02-28 15:23:41
阅读次数:
120
1、题目描述 2、分析 深度优先。 3、代码 ...
分类:
其他好文 时间:
2019-02-28 13:14:54
阅读次数:
158
1020 Tree Traversals Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, y ...
分类:
其他好文 时间:
2019-02-27 01:41:50
阅读次数:
212
C++ 递归遍历+判断左叶子节点,效率不高, 更多答案参考大佬解答: https://leetcode.com/problems/sum-of-left-leaves/discuss/244628/six-ways-to-solve-this-question 明天好好学习一下 ...
分类:
其他好文 时间:
2019-02-27 01:05:40
阅读次数:
176