You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep ...
分类:
其他好文 时间:
2017-10-29 11:23:34
阅读次数:
172
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n ...
分类:
其他好文 时间:
2017-10-28 22:11:24
阅读次数:
122
stl中的二分查找 支持原创 STL中关于二分查找的函数有三个lower_bound 、upper_bound 、binary_search 。这三个函数都运用于有序区间(当然这也是运用二分查找的前提)。 关于详细应用见链接 上几个链接 http://blog.csdn.net/sicofield/ ...
分类:
编程语言 时间:
2017-10-28 18:51:15
阅读次数:
158
from www.jianshu.com/p/b90a9ce05b28 本文结构: CART算法有两步 回归树的生成 分类树的生成 剪枝 CART - Classification and Regression Trees 分类与回归树,是二叉树,可以用于分类,也可以用于回归问题,最先由 Breim ...
分类:
其他好文 时间:
2017-10-28 14:37:30
阅读次数:
206
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2017-10-28 11:20:46
阅读次数:
164
There are some trees, where each tree is represented by (x,y) coordinate in a two-dimensional garden. Your job is to fence the entire garden using the ...
分类:
其他好文 时间:
2017-10-28 00:34:31
阅读次数:
188
此文章仅供个人学习: 简单归纳: /bin目录(binary)是二进制执行文件目录,主要用于具体应用 /sbin目录(system binary)是系统管理员专用的二进制代码存放目录,主要用于系统管理 附转载一份: /bin,/sbin,/usr/bin,/usr/sbin区别 / : this i ...
分类:
系统相关 时间:
2017-10-27 16:36:20
阅读次数:
226
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length ...
分类:
其他好文 时间:
2017-10-27 15:39:49
阅读次数:
105
八位流:在计算机中存储的最小单位是位(binary),也就是0和1的二进制码,但是非特殊情况下,能操作的最小存储单位是字节,每8位一个字节。在计算机中所有的文件都是以字节组成,所以八位流也叫做字节流、通用流,通过八位流可以操作所有的文件。所以八位流输出和输入的最小单位..
分类:
其他好文 时间:
2017-10-27 10:21:10
阅读次数:
179
thrift cpp环境搭建: 1、 安装boost_1_53_0,注意,使用vs2010版本时,使用二进制的boost安装版本,生成的lib有可能是,在后续操作会出问题。在源码目录中,运行bootstrap.dat,然后会生成b2.exe文件,该文件可以编译boost需要的库,生成文件在boost ...
分类:
编程语言 时间:
2017-10-27 01:45:40
阅读次数:
412