Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [3,2,1]. 思路:后序遍历 ...
分类:
其他好文 时间:
2016-10-09 13:04:26
阅读次数:
124
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. Given a singly linked list where element ...
分类:
其他好文 时间:
2016-10-09 07:21:51
阅读次数:
189
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 num ...
分类:
其他好文 时间:
2016-10-09 07:18:32
阅读次数:
198
src文件夹 source的简写,用于存放源代码。 lib/dep文件夹 library的简写,用于存放引入的第三方库(jquery)。 bin文件夹 binary的简写,用于存放二进制文件。 docs文件夹 document的简写,用于存放一些文档。 dist文件夹 distribution的简写 ...
分类:
其他好文 时间:
2016-10-08 19:31:34
阅读次数:
135
题目链接 题意:给定两个长度为n的数组a与长度为m的数组b, 给定一个操作符op满足 x op y = x < y ? x+y : x-y. 有q个询问,每次给出询问c,问:有多少对(i, j)满足a[i] op b[j] = c ? 0 <= c <= 100000, 其余数据范围在[0, 500 ...
分类:
其他好文 时间:
2016-10-07 01:19:14
阅读次数:
126
PK==》 PRIMARY KEY ==》 主键NN==》 NOT NULL ==》 不可为空UQ==》 UNIQUE ==》 唯一的AL==》 AUTO INCREMENT ==》 自动增加BIN==》 BINARY ==》 二进制UN==》 UNSIGNED ==》无符号位的ZF==》 ZERO ...
分类:
数据库 时间:
2016-10-06 22:47:37
阅读次数:
336
10.1 2014鞍山 10.2 四汆省赛 10.3 ??? 10.4 CCPC长春 HDU 5921 Binary Indexed Tree 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <alg ...
分类:
其他好文 时间:
2016-10-06 10:30:43
阅读次数:
147
题目: Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,3,2]. Note: Recursive s ...
分类:
其他好文 时间:
2016-10-06 07:07:17
阅读次数:
144
Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [3,2,1]. 牛解法:postorder就是L-R- ...
分类:
其他好文 时间:
2016-10-06 07:02:22
阅读次数:
163
题目: Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,2,3]. Note: Recursive ...
分类:
其他好文 时间:
2016-10-06 06:55:04
阅读次数:
126