码迷,mamicode.com
首页 >  
搜索关键字:longest substring wi    ( 8067个结果
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]
问题描述: 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
LeetCode:Maximum Depth of Binary Tree
要求:求二叉树的深度(二叉树的深度为最远叶子节点到根节点的距离,即根节点到最远叶子节点的距离)Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest ...
分类:其他好文   时间:2014-11-27 17:55:50    阅读次数:145
JSTL函数标签库 fn标签
在使用jstl的函数标签库之前需要在页面中引入:1、fn:contains(string, substring) 如果参数string中包含参数substring,返回true。2、fn:containsIgnoreCase(string, substring) 如果参数string中包含参数sub...
分类:Web程序   时间:2014-11-27 15:55:58    阅读次数:162
Qt的皮肤设计(Style Sheet)
Qt的皮肤设计,也可以说是对Qt应用程序的界面美化,Qt使用了一种类CSS的样式规则QSS。一、Style Sheet的应用1.直接在程序代码中设置样式,利用setStyleSheet()方法widget->setStyleSheet("color:red"); //widget内字体颜色为红色wi...
分类:其他好文   时间:2014-11-27 15:52:22    阅读次数:177
LeetCode:Longest Palindromic Substring
题目描述: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 解题思路:...
分类:其他好文   时间:2014-11-27 14:36:22    阅读次数:187
sql进制之间的转换
-----二进制转换十进制----------------- select sum(data1) from ( select substring('11011', number, 1)*power(2,len('11011')-number)data1 from (select number from master.dbo.spt_values where type='p...
分类:数据库   时间:2014-11-27 12:50:11    阅读次数:258
Longest Palindromic Substring 解题报告
使用马拉车算法,时间复杂度为O(n),算法详细解释在上一篇文章中。//// main.cpp// Longest Substring//// Created by Bowie Hsu on 14/11/21.// Copyright (c) 2014年 Bowie Hsu . All ...
分类:其他好文   时间:2014-11-27 12:38:37    阅读次数:137
Leetcode-Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:其他好文   时间:2014-11-27 07:59:55    阅读次数:184
[leetcode]
问题描述: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [...
分类:其他好文   时间:2014-11-26 22:39:47    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!