PermutationSequence https://oj.leetcode.com/problems/permutation-sequence/The set [1,2,3,…,n] contains a total of n! unique permutations.By listing a....
分类:
其他好文 时间:
2015-01-14 19:50:23
阅读次数:
136
题目:
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 ...
分类:
编程语言 时间:
2015-01-14 16:58:27
阅读次数:
222
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-01-14 16:44:41
阅读次数:
109
--如果字段原来无默认值,直接执行如下语句,添加默认值:
alter table 表名 add default(1) for 字段名
--如果原来有默认值,现在要更改默认值,则需要先把原来的默认值drop掉,再添加新的默认值
alter table 表名 drop constraint 默认值约束的名称
--如果不知道默认值约束的名称,用如下语句查询得到:
select [nam...
分类:
数据库 时间:
2015-01-14 12:48:48
阅读次数:
312
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 3 ...
分类:
其他好文 时间:
2015-01-14 09:52:27
阅读次数:
150
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2015-01-13 23:09:55
阅读次数:
151
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:
其他好文 时间:
2015-01-13 22:55:24
阅读次数:
195
matlab 基础 unique函数与ismember函数...
分类:
其他好文 时间:
2015-01-13 21:39:37
阅读次数:
283
https://oj.leetcode.com/problems/unique-binary-search-trees/Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For...
分类:
其他好文 时间:
2015-01-13 21:13:32
阅读次数:
161
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\ ...
分类:
其他好文 时间:
2015-01-13 19:50:02
阅读次数:
147