Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2015-02-25 15:32:26
阅读次数:
109
oracle031
字符集的简要概述
字符集:就是一张字符和编码的对应表。
1、字符集的作用和含义
字符编码
使用场合
数据库字符集
(1)用来存储CHAR, VARCHAR2, CLOB, LONG等类型数据
(2)用来标示诸如表名、列名以及PL/SQL变量等
(3)...
分类:
其他好文 时间:
2015-02-24 10:18:18
阅读次数:
192
Given a binary tree, return the postorder traversal of its nodes’ values.For example:
Given binary tree {1,#,2,3},
return [3,2,1].Note: Recursive solution is trivial, could you do it iteratively?...
分类:
其他好文 时间:
2015-02-24 07:02:03
阅读次数:
180
Given a binary tree, return the preorder traversal of its nodes’ values.For example:
Given binary tree {1,#,2,3},
return [3,2,1].Note: Recursive solution is trivial, could you do it iteratively?递归...
分类:
其他好文 时间:
2015-02-24 01:53:20
阅读次数:
192
create table t(x int identity(1,1) primary key,v nvarchar(32));goinsert into t(v) values('this is % line'),('this is 1 line');我们的目标是找到'this is % line'...
分类:
数据库 时间:
2015-02-23 23:38:12
阅读次数:
178
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2015-02-22 06:46:02
阅读次数:
162
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:
其他好文 时间:
2015-02-21 15:26:40
阅读次数:
185
标题:Unique Binary Search Trees通过率:37.0%难度:中等Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= ...
分类:
其他好文 时间:
2015-02-20 14:07:19
阅读次数:
110
标题:Unique Binary Search Trees II通过率:27.5%难度:中等Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,G...
分类:
其他好文 时间:
2015-02-20 14:05:11
阅读次数:
127
传送门:http://poj.org/problem?id=1094
Sorting It All Out
Description
An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elem...
分类:
其他好文 时间:
2015-02-20 09:46:55
阅读次数:
159