Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:
其他好文 时间:
2014-09-15 14:13:38
阅读次数:
153
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,...
分类:
其他好文 时间:
2014-09-15 14:07:38
阅读次数:
175
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-09-15 12:41:48
阅读次数:
133
Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2]....
分类:
其他好文 时间:
2014-09-15 09:54:08
阅读次数:
135
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2...
分类:
编程语言 时间:
2014-09-15 06:38:18
阅读次数:
200
Merge Two Sorted Lists:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fi...
分类:
编程语言 时间:
2014-09-15 01:02:17
阅读次数:
269
总空间大小:50G目录建议大小实际大小格式描述/10G~20G10Gext4根目录swap<2048M1Gswap交换空间/boot200M左右100Mext4Linux的内核及引导系统程序所需要的文件,比如 vmlinuz initrd.img文件都位于这个目录中。在一般情况下,GRUB或LILO...
分类:
其他好文 时间:
2014-09-14 17:52:07
阅读次数:
182
MaxHBLT.h
#include
template
inline void Swap(T& a, T& b)
{
T c = a;
a = b;
b = c;
}
template class MaxHBLT;
template
class TNode
{
friend MaxHBLT;
public:
TNode(const T& val)
{
data =...
分类:
其他好文 时间:
2014-09-13 21:32:36
阅读次数:
239
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...
分类:
其他好文 时间:
2014-09-13 20:08:35
阅读次数:
179
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2014-09-13 20:07:55
阅读次数:
287