Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 求字符串中的最大回文子串(从左往右和从右往左读一样的子串)。 Exa ...
分类:
其他好文 时间:
2017-02-12 01:05:47
阅读次数:
191
项目中创建表格, 引用头文件 #import "WBDataGridView.h" - (void)viewDidLoad{ [superviewDidLoad]; // Do any additional setup after loading the view. self.view.backgr ...
分类:
移动开发 时间:
2017-02-10 10:45:33
阅读次数:
261
Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical paper ...
分类:
其他好文 时间:
2017-02-10 01:43:56
阅读次数:
264
Given a string, find the length of the longest substring without repeating characters. Examples: 解法: 建立一个大小为256整形数组,用来记录每个字符上一次出现的位置。longest记录最长的子串长度, ...
分类:
其他好文 时间:
2017-02-09 23:32:46
阅读次数:
164
问题描述: 有一个长为n的数列a0, a1,..., an-1.请求出这个序列中最长的上升子序列。请求出这个序列中最长的上升子序列。 上升子序列:对于任意i<j都满足ai<aj的子序列. 限制条件 i <= n <= 1000 0 <= ai <= 1000000 两种定义方式 具体看程序注释 ...
分类:
其他好文 时间:
2017-02-09 00:49:14
阅读次数:
129
3. Longest Substring Without Repeating Characters 3. Longest Substring Without Repeating Characters Total Accepted: 244703 Total Submissions: 1029071 ...
分类:
其他好文 时间:
2017-02-08 14:15:05
阅读次数:
133
一、什么是SurfaceView 官方文档: SurfaceView是视图(View)的继承类,这个视图里内嵌了一个专门用于绘制的Surface。你可以控制这个Surface的格式和尺寸。Surfaceview控制这个Surface的绘制位置。 surface是纵深排序(Z-ordered)的,这表 ...
分类:
其他好文 时间:
2017-02-07 12:31:43
阅读次数:
232
第三道题,和前面的那个第一道题数组里面的两个元素求和有点像,题目如下: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", ...
分类:
其他好文 时间:
2017-02-05 13:54:06
阅读次数:
177
5. Longest Palindromic Substring 5. Longest Palindromic Substring Total Accepted: 170563 Total Submissions: 688595 Difficulty: Medium Contributors: Ad ...
分类:
其他好文 时间:
2017-02-04 10:58:46
阅读次数:
203
这是一个简单版本of LC 424 Longest Repeating Character Replacement 又是Window, 又是Two Pointers Window还是采用每次都try to update left使得window valid, 每次都检查最大window ...
分类:
其他好文 时间:
2017-02-01 10:48:22
阅读次数:
178