题目:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which ...
分类:
其他好文 时间:
2015-05-18 12:45:37
阅读次数:
100
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2015-05-18 12:41:10
阅读次数:
113
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ 2 3
Return 6.
...
分类:
其他好文 时间:
2015-05-18 09:18:17
阅读次数:
102
题目描述
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the se...
分类:
其他好文 时间:
2015-05-18 09:12:13
阅读次数:
118
题目:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsu...
分类:
其他好文 时间:
2015-05-17 23:29:44
阅读次数:
153
Linux目录和Windows目录有着很大的不同,Linux目录类似一个树,最顶层是其根目录,如下图:
/bin
bin是binary的缩写。这个目录沿袭了UNIX系统的结构,存放着使用者最经常使用的命令。例如cp、ls、cat,等等。
/boot
这里存放的是启动Linux时使用的一些核心文件。
/dev
dev是device(设备)的缩写。这个目录下是所有L...
分类:
系统相关 时间:
2015-05-17 21:58:05
阅读次数:
182
https://leetcode.com/problems/add-binary/Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"1...
分类:
编程语言 时间:
2015-05-17 21:48:42
阅读次数:
128
Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 ...
分类:
其他好文 时间:
2015-05-17 18:48:13
阅读次数:
118
Same Tree
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value...
分类:
其他好文 时间:
2015-05-17 18:46:13
阅读次数:
93
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 1 class Solution { 2 public: 3 int l...
分类:
其他好文 时间:
2015-05-17 18:38:05
阅读次数:
87