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...
分类:
其他好文 时间:
2015-02-10 15:06:02
阅读次数:
172
Write a function to find the longest common prefix string amongst an array of strings.class Solution {public: string longestCommonPrefix(vector &st...
分类:
其他好文 时间:
2015-02-10 14:41:50
阅读次数:
157
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2015-02-10 14:38:57
阅读次数:
143
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.class Solution {public:string tostrin...
分类:
其他好文 时间:
2015-02-10 14:38:50
阅读次数:
201
原文地址:http://blog.csdn.net/no_retreats/article/details/7853066C++中substr函数的用法#include#includeusingnamespacestd;main(){strings("12345asdf");stringa=s.su...
分类:
编程语言 时间:
2015-02-10 11:00:57
阅读次数:
178
题目链接:Multiply Strings
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
...
分类:
其他好文 时间:
2015-02-10 09:16:45
阅读次数:
228
题目链接:Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
这道题的要求是计算大数乘法。其中大数...
分类:
其他好文 时间:
2015-02-10 09:16:09
阅读次数:
114
Write a method that will search an array of strings for all strings that contain another string, ignoring capitalization. Then return an array of the ...
分类:
其他好文 时间:
2015-02-09 23:03:22
阅读次数:
246
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".class Solution {public:string addBinary(string ...
分类:
其他好文 时间:
2015-02-09 15:32:50
阅读次数:
127
1,java代码中不出现中文,最多注释中可以出现中文,中文统一写在strings.xml中;2,局部变量命名、静态成员变量命名 只能包含字母,单词首字母大写,其他字母都为小写3,常量命名只能包含字母和_,字母全部大写,单词之间用_隔开4,布局文件中的id命名命名模式为:view缩写_模块名称_vie...
分类:
移动开发 时间:
2015-02-08 21:50:53
阅读次数:
186