码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
JavaScript高级用法二之内置对象
综述本篇的主要内容来自慕课网,内置对象,主要内容如下1 什么是对象2 Date 日期对象3 返回/设置年份方法4 返回星期方法5 返回/设置时间方法6 String 字符串对象7 返回指定位置的字符8 返回指定的字符串首次出现的位置9 字符串分割split()10 提取字符串substring()1...
分类:编程语言   时间:2015-06-03 09:32:52    阅读次数:272
repeater绑定数据三元运算符处理
repeater绑定标题字符串,有些情况标题过长,显示不全。如果标题字符串超过65,截取字符串65个的长度,超过的后面加“...”号代替,否则正常绑定。 65 ? Convert.ToString(Eval("title")).Substring(0, 65) + "..." : Convert.T...
分类:其他好文   时间:2015-06-02 17:23:01    阅读次数:1664
LeetCode 03: 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. For ...
分类:其他好文   时间:2015-06-02 09:24:48    阅读次数:113
3.Longest Substring without repeating characters
public class Solution { public int lengthOfLongestSubstring(String s) { if (s == null || s.length() == 0) { return 0; } ...
分类:其他好文   时间:2015-06-02 06:50:27    阅读次数:110
Longest Valid Parentheses
这道题最大的问题是位置容易想不清楚public class Solution { public int longestValidParentheses(String s) { // http://blog.csdn.net/linhuanmars/article/details/...
分类:其他好文   时间:2015-06-02 06:47:55    阅读次数:124
LeetCode【5】. Longest Palindromic Substring --java实现
Java Longest Palindromic Substring(最长回文字符串)...
分类:编程语言   时间:2015-06-02 00:27:16    阅读次数:326
解题报告 之 POJ1226 Substrings
POJ1226 Substrings,字符串,暴力,最长公共子串 You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given strings....
分类:其他好文   时间:2015-06-01 22:48:24    阅读次数:223
POJ3693:Maximum repetition substring(后缀数组+RMQ)
Description The repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same consecutive substrings. For example, the repetition number of "a...
分类:编程语言   时间:2015-06-01 22:36:06    阅读次数:262
第五节:用可靠性换取开发效率
面向对象编程极大的提升了开发人员的效率。开发效率的提升有很大一部分来源于可组合性,它使代码很容易编写、阅读、维护。例如下面的代码:Boolean f = "Jeff".Substring(1, 1).ToUpper().EndsWith("E");但上面代码有一个重要的前提:没有错误发生。而错误总是...
分类:其他好文   时间:2015-06-01 22:29:10    阅读次数:140
Java for LeetCode 132 Palindrome Partitioning II
Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ...
分类:编程语言   时间:2015-06-01 22:02:43    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!