码迷,mamicode.com
首页 >  
搜索关键字:valid characters    ( 4838个结果
LeetCode:Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135",return ["25...
分类:其他好文   时间:2015-01-22 15:21:34    阅读次数:108
Leetcode: Longest Substring with At Most Two Distinct Characters
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s = “eceba”,T is "ece" which...
分类:其他好文   时间:2015-01-22 14:52:17    阅读次数:134
Leetcode: Read N Characters Given Read4 II - Call multiple times
The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur...
分类:其他好文   时间:2015-01-22 08:13:46    阅读次数:487
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-01-21 23:56:00    阅读次数:280
Wildcard Matching -- leetcode
Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching should cover t...
分类:其他好文   时间:2015-01-21 15:21:59    阅读次数:184
leetcode------Valid Palindrome
标题:Valid Palindrome通过率:21.9%难度:简单Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For exam...
分类:其他好文   时间:2015-01-21 10:09:24    阅读次数:171
[Leetcode][JAVA] Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECODEBA...
分类:编程语言   时间:2015-01-21 06:35:47    阅读次数:255
[LeetCode#125]Valid Palindrome
The problem:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a...
分类:其他好文   时间:2015-01-21 06:34:49    阅读次数:192
【leetcode】Valid Number
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-01-20 23:29:44    阅读次数:329
[C++]LeetCode: 113 Word Break II (DP && Backtacking) 求解拆分组合
题目: 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...
分类:编程语言   时间:2015-01-20 22:22:42    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!