码迷,mamicode.com
首页 >  
搜索关键字:valid anagram    ( 3019个结果
LeetCode --- 93. Restore IP Addresses
题目链接:Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135", return ["255.255.11.135", "25...
分类:其他好文   时间:2015-04-09 11:57:09    阅读次数:191
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan...
分类:其他好文   时间:2015-04-09 00:58:05    阅读次数:128
LeetCode【20】Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2015-04-08 23:19:09    阅读次数:230
[leetcode]Word Break II
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such possible sentences.For example, given s = “catsanddo...
分类:其他好文   时间:2015-04-08 16:25:24    阅读次数:164
Anagrams--LeetCode
题目: Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 思路: 判断两个字符串是否为anagram的方法可以有: 1)将每个字符串的所有字符按字典序排列,比较是否相同。 2)用Has...
分类:其他好文   时间:2015-04-08 15:02:39    阅读次数:143
Valid Number @python
Valid NumberValidate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the ...
分类:编程语言   时间:2015-04-07 22:58:36    阅读次数:248
LeetCode #Valid Palindrome#
LeetCode #Valid Palindrome# 我的Python解答: """ Programmer : EOF e-mail : jasonleaster@gmail.com Date : 2015.04.07 File : vp.py """ import string ...
分类:其他好文   时间:2015-04-07 17:49:59    阅读次数:99
CSU1563:Lexicography(数学)
Description An anagram of a string is any string that can be formed using the same letters as the original. (We consider the original string an anagram of itself as well.) For example, the string...
分类:其他好文   时间:2015-04-07 17:45:41    阅读次数:114
csu1563: Lexicography以及找出多重集的第k个串的讲解
Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 162  Solved: 52 [Submit][Status][Web Board] Description An anagram of a string is any string that can be formed using the same letters as the...
分类:其他好文   时间:2015-04-07 15:42:17    阅读次数:117
Leetcode---word Break II
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences. For example, given s = "...
分类:其他好文   时间:2015-04-07 10:09:29    阅读次数:91
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!