题目链接Krishnakant is standing at(0,0)in the Cartesian plane. He wants to go to the point(N,M)in the same plane using only horizontal and vertical moves ...
分类:
其他好文 时间:
2014-08-27 14:30:17
阅读次数:
230
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-08-27 01:37:16
阅读次数:
242
BEGINWITHtxAS(SELECTa.object_id,b.nameASschema_name,a.nameAStable_name,c.nameasix_name,c.is_uniqueASix_unique,c.type_descASix_type_desc,d.index_column...
分类:
数据库 时间:
2014-08-26 21:27:06
阅读次数:
368
一、表操作语法差异 在建表的时候,只有自增的语法不同。 主键(PRIMARY KEY)、外键(FOREIGN KEY)、非空(NOT NULL)、唯一(UNIQUE)、默认值(DEFAULT)都相同,自增实现的方式不同。 下面给出3种数据库通用的建表与初始化测试语句:CREATE TABLE ...
分类:
数据库 时间:
2014-08-26 21:08:06
阅读次数:
271
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 longes...
分类:
其他好文 时间:
2014-08-26 19:09:06
阅读次数:
153
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 ...
分类:
其他好文 时间:
2014-08-25 22:49:25
阅读次数:
274
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-08-25 20:55:04
阅读次数:
208
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 po...
分类:
其他好文 时间:
2014-08-25 20:43:44
阅读次数:
237
Unique PathsA 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 a...
分类:
编程语言 时间:
2014-08-25 06:33:53
阅读次数:
277
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic...
分类:
其他好文 时间:
2014-08-24 23:37:03
阅读次数:
278