string1.equals(string2) 比较字符串substring()它有两种形式,第一种是:String substring(int startIndex)第二种是:String substring(int startIndex,int endIndex)concat() 连接两个字符串...
分类:
编程语言 时间:
2014-07-19 16:39:47
阅读次数:
290
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-07-19 14:20:14
阅读次数:
178
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 32192
Accepted: 14093
Description
A numeric sequence of ai is ordered if a1 a...
分类:
其他好文 时间:
2014-07-19 11:47:53
阅读次数:
169
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 32192
Accepted: 14093
Description
A numeric sequence of ai is ordered if
a1 a2...
分类:
其他好文 时间:
2014-07-19 11:11:54
阅读次数:
159
最长公共子序列(LCS) 代码(C)本文地址:http://blog.csdn.net/caroline_wendy题目: 给定两个字符串s,t, 求出这两个字符串最长的公共子序列的长度. 字符串的子序列并一定要连续, 能够包含间隔.即最长公共子序列问题(LCS, Longest Common Su...
分类:
其他好文 时间:
2014-07-19 09:07:09
阅读次数:
193
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:
其他好文 时间:
2014-07-19 00:05:43
阅读次数:
200
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-18 18:17:46
阅读次数:
290
题意:对于给出的原括号串,存在两种数字密码串:
1.p序列:当出现匹配括号对时,从该括号对的右括号开始往左数,直到最前面的左括号数,就是pi的值。
2.w序列:当出现匹配括号对时,包含在该括号对中的所有右括号数(包括该括号对),就是wi的值。
题目要求给你一个字符串的P序列,要你去求它的W序列
思路:我比较笨、菜,所以用了比较菜的方法。先用P求出字符串S,再...
分类:
其他好文 时间:
2014-07-18 14:07:01
阅读次数:
222
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-07-18 12:12:12
阅读次数:
222
(转帖)本文转自:scueJason Sun 使用eclipse的自动补全,有时候要选的字不是第一个,需要在proposal中向下移动光标选择,但是eclipse只能按方向键完成,没有tab补全来的爽,找过似乎也没有这样的插件,只好找到一个修改一点源码的方法:1.首先,打开Eclipse,打开wi....
分类:
其他好文 时间:
2014-07-18 00:04:39
阅读次数:
543