码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
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: P...
分类:其他好文   时间:2014-07-09 21:38:15    阅读次数:207
leetcode题解:Valid Parentheses(栈的应用-括号匹配)
题目:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the corre...
分类:其他好文   时间:2014-07-09 21:12:58    阅读次数:221
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: Pana...
分类:其他好文   时间:2014-07-06 16:45:00    阅读次数:201
poj 1676 What time is it?
DescriptionAn accutron shows time with four digits, from 0000 to 2359. Every digit is represented by 3*3 characters, including '|'s, '_'s and blanks. ...
分类:其他好文   时间:2014-07-06 13:19:09    阅读次数:300
POJ 1258 Agri-Net
最小生成树问题。 用矩阵输入的。 不过很忧伤的是用G++ 提交AC。。C++ 就一直RE。 不过题中说了最多 100 X 100 的矩阵啊。 Logically, they are N lines of N space-separated integers. Physically, they are limited in length to 80 characters, so some l...
分类:Web程序   时间:2014-07-06 09:17:00    阅读次数:312
leecode 回文字符串加强版
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:其他好文   时间:2014-07-03 19:38:58    阅读次数:287
leetcode-Longest Substring Without Repeating Characters 最长不重复子串
在一个字符串中求不重复子串的最大长度是一个经典的贪心法求解问题(说子串自然是连续的,子序列则不要求连续)。 先给出leetcode上这题的描述: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring wit...
分类:其他好文   时间:2014-07-03 16:24:55    阅读次数:281
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...
分类:其他好文   时间:2014-07-02 16:35:32    阅读次数:213
【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: Panama" is a palindrome. "race a car" i...
分类:其他好文   时间:2014-07-02 09:49:04    阅读次数:271
LeetCode: Reverse Words in a String [151]
【题目】 Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarification. Clarification: What constitutes a word? A sequence of non-space characters constitutes a word....
分类:其他好文   时间:2014-07-02 08:34:34    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!