create table Document(ID int not null,Name nvarchar(255) not null,Body nvarchar(max) not null);gocreate unique index uq_ix_for_Document --#这里一定要加一个not...
分类:
数据库 时间:
2014-10-26 21:01:06
阅读次数:
177
DP、KMP什么的都太高大上了,自己想了个朴素的遍历方法。
【题目】
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 palin...
分类:
其他好文 时间:
2014-10-26 15:37:32
阅读次数:
249
题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each numb...
分类:
其他好文 时间:
2014-10-26 06:43:06
阅读次数:
171
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ...
分类:
其他好文 时间:
2014-10-25 22:50:47
阅读次数:
267
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.Note:Elemen...
分类:
其他好文 时间:
2014-10-25 21:24:42
阅读次数:
256
属于中规中矩的dp。和unique paths类似。一次ac。但是可以通过滚动数组来节省存储空间。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 int...
分类:
其他好文 时间:
2014-10-25 21:19:04
阅读次数:
244
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character '.'.
You may assume that there will be only one unique solution.
A sudoku...
分类:
其他好文 时间:
2014-10-25 17:27:41
阅读次数:
232
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
Each number in C may only be used once in the combina...
分类:
其他好文 时间:
2014-10-25 14:34:02
阅读次数:
163
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.
The same repeated number may be chosen from C unlimited numb...
分类:
其他好文 时间:
2014-10-25 11:56:08
阅读次数:
206
看到文章里的同学留言说到unique_ptr,这两天看了一下cplusplus提供的reference才知道这个东西是c++11的新特性,对c++11的新特性不是很了解,花时间了解了下unique_ptr,之前有写过auto_ptr的分析,这里就和auto_ptr对比下来看。unique_ptr.....
分类:
其他好文 时间:
2014-10-25 10:28:05
阅读次数:
1948