2.1创建数据库表use db_databaseckcreate table 职工(职工编号 int identity(1,1) primary key,职工号 varchar(50) unique,仓库号 varchar(50),基本工资 int check(基本工资>=800 and基本工资<....
分类:
数据库 时间:
2015-03-15 13:53:08
阅读次数:
131
题目链接:Permutation Sequence
The set [1,2,3,…,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
...
分类:
其他好文 时间:
2015-03-15 00:54:34
阅读次数:
150
/* 卡特兰数,只记得递推公式, h(n) = h(n-1)*(4*n-2)/(n+1), h(n) = C(2*n,n)/(n+1), h(n) = C(2*n,n) - C(2*n,n+1);*/class Solution {public: int C(int n...
分类:
其他好文 时间:
2015-03-14 16:39:15
阅读次数:
123
What isρ(s,?t)equal to? For every character ofsand every character oftthere is a unique cyclic shift oftthat superposes these characters (indeed, afte...
分类:
其他好文 时间:
2015-03-13 20:42:28
阅读次数:
120
3Sum问题: Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.思路....
分类:
其他好文 时间:
2015-03-13 17:57:50
阅读次数:
163
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
96 Unique Binary Search Trees
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a tota...
分类:
其他好文 时间:
2015-03-13 09:23:00
阅读次数:
114
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
95 Unique Binary Search Trees II
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your ...
分类:
其他好文 时间:
2015-03-13 09:20:50
阅读次数:
109
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?简单动态规划。判别每个左右子树各有多少种情况,然后相乘就可以了,而且是BST,注意这条件就可以解了。它的状态转移方程为: .....
分类:
其他好文 时间:
2015-03-13 00:07:39
阅读次数:
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-03-12 22:05:04
阅读次数:
148
Unique Paths II问题:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle...
分类:
其他好文 时间:
2015-03-12 18:47:56
阅读次数:
181