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 le...
分类:
其他好文 时间:
2015-12-09 17:06:30
阅读次数:
108
题目:Given a non-empty binary search tree and a target value, findkvalues in the BST that are closest to the target.Note:Given target value is a floatin...
分类:
其他好文 时间:
2015-12-09 07:09:39
阅读次数:
180
3.1数据类型分为数字,文本,音频,图像,视频计算机内部的数据 位(bit,binary digit)时存储在计算机中的最小单位。他是0或1。位模式 为了表示数据的不同类型,应该使用位模式,他是一个序列,有时也被称为位流。通常长度为8的位模式被称为1字节3.2.1存储整数(定点表示法)定点表示法.....
分类:
其他好文 时间:
2015-12-09 01:55:09
阅读次数:
133
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.求出0,1矩阵中的最大矩形区域:DP问题,可以使用数组记下当前行位...
分类:
其他好文 时间:
2015-12-08 23:48:48
阅读次数:
203
https://leetcode.com/problems/binary-tree-paths//** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * ...
分类:
其他好文 时间:
2015-12-08 18:00:45
阅读次数:
111
8.1 Trees-->root,children, parent, siblings, leaf; level, degree of element 的基本概念8.2 Binary Trees-->什么样的tree是Binary Tree8.3. Properties of Binary Tree...
分类:
编程语言 时间:
2015-12-08 17:53:02
阅读次数:
128
https://leetcode.com/problems/path-sum-ii//** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * Tree...
分类:
其他好文 时间:
2015-12-08 15:55:17
阅读次数:
186
题目连接https://leetcode.com/problems/binary-tree-paths/Binary Tree PathsDescriptionGiven a binary tree, return all root-to-leaf paths.For example, given ...
分类:
其他好文 时间:
2015-12-08 10:09:48
阅读次数:
149
# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
分类:
编程语言 时间:
2015-12-08 08:39:52
阅读次数:
176
题目解析:(链接)Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contai...
分类:
其他好文 时间:
2015-12-07 11:54:17
阅读次数:
145