http://onevcat.com/2014/07/ios-ui-unique/涉及到SizeClassesUITraitCollection 和 UITraitEnvironmentSize Classes 和 Image Asset 及 UIAppearenceUIViewController...
分类:
移动开发 时间:
2014-12-09 00:24:27
阅读次数:
136
问题描述:
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 palindromic substring.
基本思想:
本题的navi...
分类:
其他好文 时间:
2014-12-08 23:04:00
阅读次数:
221
【题目】
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 is marked as 1 and 0 respectively...
分类:
其他好文 时间:
2014-12-08 17:47:15
阅读次数:
167
【题目】
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 ...
分类:
其他好文 时间:
2014-12-08 17:45:44
阅读次数:
213
下面想象一个这样的场景,你的数据库有一个表中储存有用户信息,姑且称为user表。 ???? .schema user CREATE TABLE user(id integer,name text,telphone text,unique(id)); ? 表user中储存有 id: ...
分类:
数据库 时间:
2014-12-08 12:36:14
阅读次数:
216
9.2 设想有个机器人坐在X*Y网格的左上角,只能向右、向下移动。机器人从(0,0)到(X,Y)有多少种走法?进阶:假设有些点为“禁区”,机器人不能踏足。设计一种算法,找到一条路径,让机器人从左上角移动到右下角。类似leetcode:Unique Paths和Unique Paths II解法:我们...
分类:
其他好文 时间:
2014-12-07 19:03:50
阅读次数:
191
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-12-07 00:06:32
阅读次数:
228
4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum...
分类:
其他好文 时间:
2014-12-06 21:30:05
阅读次数:
460
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-12-06 16:46:12
阅读次数:
225
3SumGiven 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:El...
分类:
其他好文 时间:
2014-12-05 22:38:12
阅读次数:
250