码迷,mamicode.com
首页 >  
搜索关键字:valid characters    ( 4838个结果
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 fo...
分类:其他好文   时间:2014-11-28 06:10:44    阅读次数:172
LeetCode: Longest Valid Parentheses O(n)时间 O(1)空间
题目: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substrin...
分类:其他好文   时间:2014-11-27 23:42:23    阅读次数:196
LeetCode: Text Justification 解题报告
Text JustificationGiven an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) j...
分类:其他好文   时间:2014-11-27 23:29:28    阅读次数:352
[leetcode]
问题描述: 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 ...
分类:其他好文   时间:2014-11-27 20:32:31    阅读次数:135
jpython LookupError: unknown encoding ‘ms936‘ 问题解决
到jpython2.5.3文件下,找到registry文件,将里面的内容这个部分修改 修改前: # Setting this to a valid codec name will cause the console to use a # different encoding when reading commands from the c...
分类:编程语言   时间:2014-11-27 19:01:06    阅读次数:319
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.2...
分类:其他好文   时间:2014-11-27 18:16:58    阅读次数:170
[Leetcode]Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:其他好文   时间:2014-11-27 16:30:19    阅读次数:226
【Leetcode】Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1", ...
分类:其他好文   时间:2014-11-27 14:42:26    阅读次数:197
LeetCode: Evaluate Reverse Polish Notation 解题报告
Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand...
分类:其他好文   时间:2014-11-26 22:25:26    阅读次数:478
Q2:Reverse Words in a String
Clarification:What constitutes a word?A sequence of non-space characters constitutes a word.Could the input string contain leading or trailing spaces?...
分类:其他好文   时间:2014-11-26 20:37:05    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!