Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2015-01-28 23:56:50
阅读次数:
231
Unique Binary Search Trees IIGiven n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, yo...
分类:
其他好文 时间:
2015-01-28 17:27:09
阅读次数:
121
UUID含义是通用唯一识别码 (Universally Unique Identifier),这 是一个软件建构的标准,也是被开源软件基金会 (Open Software Foundation, OSF) 的组织在分布式计算环境 (Distributed Computing Environment, DCE) 领域的一部份。UUID 的目的,是让分布式系统中的所有元素,都能有唯一的辨识资讯,而不需...
分类:
编程语言 时间:
2015-01-28 11:18:21
阅读次数:
233
http://poj.org/problem?id=1789
题意理解就是裸的MST
#include
#include
#include
#define INF 0x3f3f3f3f
using namespace std;
char str[2010][10];
int dis[2010],edge[2010][2010];
bool vis[2010];
int m,ans;
in...
分类:
其他好文 时间:
2015-01-28 09:58:08
阅读次数:
169
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43198929
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....
分类:
其他好文 时间:
2015-01-28 09:58:01
阅读次数:
160
LCT维护最小生成树~
拆边为点~
详细题解~...
分类:
其他好文 时间:
2015-01-28 09:46:24
阅读次数:
550
今晚设计了一晚上的数据库,用了一下MyEclipse workbench,感觉小屏幕电脑用的太不爽了,一堆的窗口挤在一起。整理一下遇到的零碎的东西:字段约束:PK:belongs to primary key:主键NN:not null:不能为空UQ:unique index:唯一BIN:is bi...
分类:
移动开发 时间:
2015-01-28 06:10:15
阅读次数:
159
http://www.lydsy.com/JudgeOnline/problem.php?id=2015裸最短路(' ' ) 不过我最初以为是mst (' ' )#include #include #include #include #include using namespace std;c...
分类:
其他好文 时间:
2015-01-28 00:47:34
阅读次数:
208
题目链接:Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic ...
分类:
其他好文 时间:
2015-01-27 23:35:02
阅读次数:
144
描述:
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
思路:
刚开始非常天...
分类:
其他好文 时间:
2015-01-27 20:21:30
阅读次数:
205