码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果
Palindrome Partitioning
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2014-12-03 13:48:14    阅读次数:173
原生电话号码字符串得到正确格式的电话号码字符串数组
/** *由原生电话号码字符串得到正确格式的电话号码字符串数组 *@paramtel原生电话号码字符串 *@return */ privateString[]getTelNums(Stringtel){ String[]telNums=newString[]{"0"}; StringregEx="(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{7,14}"; Strings=""; Patternp=Patte..
分类:编程语言   时间:2014-12-02 12:06:39    阅读次数:151
原生电话号码字符串得到正确格式的电话号码字符串数组
/** *由原生电话号码字符串得到正确格式的电话号码字符串数组 *@paramtel原生电话号码字符串 *@return */ privateString[]getTelNums(Stringtel){ String[]telNums=newString[]{"0"}; StringregEx="(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{7,14}"; Strings=""; Patternp=Patte..
分类:编程语言   时间:2014-12-02 12:04:03    阅读次数:223
【LeetCode】Anagrams 解题报告
【题目】 Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 【解析】 题意:给定一个字符串数组,返回所有是“换位词”的字符串。 所谓“换位词/变位词”就是包含相同字母,但字母顺序可能不同的字符串。比...
分类:其他好文   时间:2014-12-02 10:35:23    阅读次数:129
Palindrome Partitioning II
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2014-12-01 23:45:12    阅读次数:245
Longest Palindromic Substring
动态规划Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longes...
分类:其他好文   时间:2014-12-01 20:48:25    阅读次数:250
poj 2406 Power Strings 【KMP的应用】
Power Strings Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 33595   Accepted: 13956 Description Given two strings a and b we define a*b to be their conca...
分类:其他好文   时间:2014-12-01 17:41:24    阅读次数:160
CC150 8.4
8.4Writeamethodtocomputeallpermutationsofastring.ThisisaverysimilarquestiontoCC8.3 staticCollection<String>permutations(Strings) { if(s==null||s.isEmpty()) returnCollections.emptyList(); if(s.length()==1) returnCollections.singletonList..
分类:其他好文   时间:2014-12-01 16:14:11    阅读次数:165
Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".思路:逐位相加,进位保留在和的下一位中。C++实现代码:#include#include#in...
分类:其他好文   时间:2014-12-01 12:37:36    阅读次数:146
Palindrome Partitioning
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2014-11-30 21:18:12    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!