码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
LeetCode: Valid Parentheses 题解
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2014-06-18 12:56:59    阅读次数:155
Longest Valid Parentheses
题目 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substring...
分类:其他好文   时间:2014-06-16 22:41:41    阅读次数:267
[leetcode]Longest Substring Without Repeating Characters @ Python
原题地址:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/题意:Given a string, find the length of the longest substring witho...
分类:编程语言   时间:2014-06-15 19:51:00    阅读次数:254
sax解析xml,在characters事件时,未完全解析字段内容就开始业务逻辑处理
解决办法方法:所以应该使用StringBuilder缓存,在startElement的时候调用sb.setLength(0);每次characters时调用sb.append(ch, start, length);在endElement的时候才调用String str = sb.toString()
分类:其他好文   时间:2014-06-12 17:44:19    阅读次数:232
关于“Some characters cannot be mapped using "GB2312" character encoding. ”的问题
今天在做项目时,遇到了一个问题。因为是在别人做好的基础上改东西,所以,一些东西不能按照自己的变成习惯来。就比如,我创建项目习惯刚建完就设置字符的编码集为UTF-8,而人家的项目就未必是那样了。好了,废话不多了。问题如下:一个jsp页面(里面有Java代码)的编码集为GB2312,而我修改里面东西时死活不让我保存,一保存就提示“Some characters cannot be mapped usi...
分类:移动开发   时间:2014-06-10 19:26:26    阅读次数:538
【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" is no...
分类:其他好文   时间:2014-06-10 18:36:29    阅读次数:193
LeetCode——Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is...
分类:其他好文   时间:2014-06-10 10:52:03    阅读次数:180
swift中文文档翻译之--字符串和字符
字符串和字符A string is an ordered collection of characters, such as "hello, world" or "albatross". Swift strings are represented by the String type, which ...
分类:其他好文   时间:2014-06-08 19:43:21    阅读次数:247
[LeetCode] Longest Substring Without Repeating Characters [15]
题目: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. For "bbbbb" the longest substring is "b", with the length...
分类:其他好文   时间:2014-06-08 03:06:52    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!