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-05-24 04:45:39
阅读次数:
245
画图和线条分别用Polygon和Polyline,过程如下1.定义一个画图信息相关的对象,这个对象画图和画线条都是可以应用的1 var polyOption =
2 {3 paths: [],4 strokeColor: "#FF0000",5 strokeOpacity: ...
5道题目分别是:【Subsets】、【Subsets II】、【Unique Paths】、【Unique Paths II】、【Trapping Rain Water 】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录。...
分类:
其他好文 时间:
2014-05-22 08:35:03
阅读次数:
348
Combination Sum IGiven a set of candidate
numbers (C) and a target number (T), find all unique combinations in C where the
candidate numbers sums to T...
分类:
其他好文 时间:
2014-05-19 16:41:14
阅读次数:
269
一、五种约束如果DML操作所涉及数据违反了已定义的约束,则数据库系统将拒绝执行这样的操作。Oracle数据库中,约束具体包括非空(NOT
NULL)约束、唯一键(UNIQUE)约束、主键(PRIMARY KEY)约束、外键(FOREIGN
KEY)约束和检查(CHECK)约束五种。和数据表类似,约束...
分类:
其他好文 时间:
2014-05-19 08:45:03
阅读次数:
368
首先把贤哥封装好的解析文件和https://github.com/topfunky/hpple上下载的文件夹拖进工程里添加 libxml2.dylib 框架在
Header Search Paths 中添加 /usr/include/libxml2引入头文件YXHTML.h// 获取数据NSData...
分类:
移动开发 时间:
2014-05-18 20:27:32
阅读次数:
393
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-05-18 19:39:55
阅读次数:
355
4Sum
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 which gives the sum of target....
分类:
其他好文 时间:
2014-05-18 13:49:09
阅读次数:
306
【题目】
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 which gives the sum of target.
Note:
Elements in a quadruplet (a,b,c,d) must be in non-descending ord...
分类:
其他好文 时间:
2014-05-18 08:46:04
阅读次数:
227
【题目】
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
The so...
分类:
其他好文 时间:
2014-05-18 03:15:50
阅读次数:
287