码迷,mamicode.com
首页 >  
搜索关键字:unique constraint    ( 5568个结果
INDEX--从数据存放的角度看索引2
在上次中,我们说到"唯一非聚集索引"和“非唯一非聚集索引”在存储上有一个明显的差别:唯一非聚集索引的非叶子节点上不会包含RID的数据,让我们继续来深挖一下。准备测试数据:CREATE TABLE TB1( C1 INT, C2 INT, C3 INT)GOCREATE UNIQUE...
分类:其他好文   时间:2014-12-15 01:24:41    阅读次数:203
Unique Binary Search Trees
题目: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. ...
分类:其他好文   时间:2014-12-14 18:30:16    阅读次数:176
Unique path II
主要是边界1和,里面1赋值的问题了。 方法还是I的方法 这里突然忘了,二维数组如何得到x,y了 public int uniquePath(int[][] obstacleGrid){ int m=obstacleGrid.length; int n=obstacleGrid[0].length; ...
分类:其他好文   时间:2014-12-14 14:42:27    阅读次数:121
LeetCode Longest Palindromic Substring
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...
分类:其他好文   时间:2014-12-14 00:38:30    阅读次数:161
【LeetCode】Permutations II
Permutations IIGiven a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the follow...
分类:其他好文   时间:2014-12-13 19:16:20    阅读次数:180
leetcode. Unique Paths
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 ...
分类:其他好文   时间:2014-12-13 16:26:37    阅读次数:128
string中常用的函数
string中常用的函数发现在string在处理这符串是很好用,就找了一篇文章放在这里了..用string来代替char * 数组,使用sort排序算法来排序,用unique 函数来去重1、Define string s1 = "hello"; string s2 = "world"; string...
分类:其他好文   时间:2014-12-12 23:37:58    阅读次数:350
九度OJ 1174 查找第K小数 (STL)
题目1174:查找第K小数 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:5161 解决:2081 题目描述: 查找一个数组的第K小的数,注意同样大小算一样大。  如  2 1 3 4 5 2 第三小数为3。 输入: 输入有多组数据。 每组输入n,然后输入n个整数(1 输出: 输出第k小的整数...
分类:其他好文   时间:2014-12-12 14:57:09    阅读次数:156
poj 1679 The Unique MST 最小生成树
点击打开链接 http://poj.org/problem?id=1679 题意:给一个无向图,问最小生成树是否唯一,如果唯一就输出最小生成树的所有边的权值的和,如果不唯一,那么就输出Not Unique! 思路:在用prime算法求最小生成树的过程中,在找到权值最小的一个节点之后,先判断一下,这个节点的权值是否可以由好几条路径求得,并且权值都等于当前权值,如果是的话,那么最小生成树就不唯...
分类:其他好文   时间:2014-12-11 20:58:28    阅读次数:291
【leetcode】 Unique Binary Search Trees (middle)☆
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2014-12-11 20:49:19    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!