码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
LeetCiode--Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all va...
分类:其他好文   时间:2015-01-09 09:16:29    阅读次数:149
(简单) HDU 3397 Sequence operation,线段树+区间合并。
Problem Description lxhgww got a sequence contains n characters which are all '0's or '1's. We have five operations here: Change operations: 0 a...
分类:其他好文   时间:2015-01-08 14:59:13    阅读次数:288
LeetCode---Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2015-01-07 23:40:19    阅读次数:305
spoj 1811
1811. Longest Common SubstringProblem code: LCSA string is finite sequence of characters over a non-empty finite set Σ.In this problem, Σ is the set o...
分类:其他好文   时间:2015-01-07 23:22:12    阅读次数:154
实时显示剩余可以输入的文字数
100 Characters Remaining.
分类:其他好文   时间:2015-01-07 14:50:31    阅读次数:165
leetcode 157: Read N Characters Given Read4
Read N Characters Given Read4 Total Accepted: 960 Total Submissions: 3775 The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of char...
分类:其他好文   时间:2015-01-06 15:38:42    阅读次数:222
[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 its length is 3. 这题的线性解法是维护一个sliding w...
分类:其他好文   时间:2015-01-06 07:20:32    阅读次数:121
LeetCode-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-01-05 07:02:29    阅读次数:229
leetcode 3.Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-01-05 00:18:13    阅读次数:147
LeetCode: Valid Parentheses 解题报告
Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must clos...
分类:其他好文   时间:2015-01-04 22:44:54    阅读次数:263
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!