Combination sum:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T....
分类:
其他好文 时间:
2015-01-13 14:08:00
阅读次数:
100
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:
其他好文 时间:
2015-01-12 16:41:29
阅读次数:
144
u Mysql数据库的优化技术对mysql优化时一个综合性的技术,主要包括a: 表的设计合理化(符合3NF)b: 添加适当索引(index) [四种: 普通索引、主键索引、唯一索引unique、全文索引]c: 分表技术(水平分割、垂直分割)d: 读写[写: update/delete/add]分离e...
分类:
数据库 时间:
2015-01-12 14:33:40
阅读次数:
228
实验环境:
1、sql工具:Navicat
2、sql数据库,使用openstack数据库作为示例
一、mysql索引查询
show index from instances
结果字段解释:
Table:数据库表名
Non_unique:索引不能包括重复词,则为0。...
分类:
数据库 时间:
2015-01-12 11:00:32
阅读次数:
274
一、索引(1)、簇索引建主键时建成的索引(2)、非簇索引可以设置多个,最多249个创建索引命令格式:CREATE [UNIQUE] [CLUSERED] [NONCLUSTERED] INDEX index_name --UNIQUE 唯一索引CLUSERED 簇索引NONCLUSTERED 普通....
分类:
其他好文 时间:
2015-01-12 09:14:39
阅读次数:
118
一、索引(1)、簇索引建主键时建成的索引(2)、非簇索引可以设置多个,最多249个创建索引命令格式:CREATE [UNIQUE] [CLUSERED] [NONCLUSTERED] INDEX index_name --UNIQUE 唯一索引CLUSERED 簇索引NONCLUSTERED 普通....
分类:
其他好文 时间:
2015-01-11 22:56:05
阅读次数:
262
Unique Paths https://oj.leetcode.com/problems/unique-paths/ A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram b...
分类:
其他好文 时间:
2015-01-11 21:30:24
阅读次数:
319
Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your pr...
分类:
其他好文 时间:
2015-01-11 14:49:29
阅读次数:
95
Permutations IIGiven a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the follow...
分类:
其他好文 时间:
2015-01-10 17:51:39
阅读次数:
272
SQL Server中有五种约束类型,分别是 PRIMARY KEY约束、FOREIGN KEY约束、UNIQUE约束、DEFAULT约束、和CHECK约束。查看或者创建约束都要使用到 Microsoft SQL Server Managment Studio。1. PRIMARY KEY约束在表中...
分类:
数据库 时间:
2015-01-10 16:20:27
阅读次数:
346