码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
[LeetCode] Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. 1 class Solution { 2 public: 3 string longestCommonPrefix(v...
分类:其他好文   时间:2015-04-16 21:20:24    阅读次数:116
[Leet code 3]Longest Substring Without Repeating Characters
1 题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter...
分类:其他好文   时间:2015-04-16 19:19:32    阅读次数:100
LeetCode --- 104. Maximum Depth of Binary Tree
题目链接:Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 这道题...
分类:其他好文   时间:2015-04-16 10:25:57    阅读次数:123
POJ 2355(LIS)
A -Longest Ordered SubsequenceTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 2533DescriptionA numeric seque...
分类:其他好文   时间:2015-04-16 01:25:20    阅读次数:169
5. Longest Palindromic Substring
题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:其他好文   时间:2015-04-15 21:20:54    阅读次数:101
3. 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...
分类:其他好文   时间:2015-04-15 21:12:09    阅读次数:125
LeetCode # Longest Common Prefix #
我的Python 解答: """ Programmer : EOF Date : 2015.04.15 File : lcp.py E-mail : jasonleaster@gmail.com """ """ Varible Description: @ret_string : We store the string...
分类:其他好文   时间:2015-04-15 17:13:05    阅读次数:152
例题:输入身份证号码,判断你是什么生肖。switch,case练习,substring 类使用联系,会用取余
Console.WriteLine("请输入您的身份证号码"); string x = Console.ReadLine(); string year=x.Substring (6,4);//从身份证的第六位开始截取,往后截取四位,就是你的出生年份 int x1 = Convert.ToInt32(...
分类:其他好文   时间:2015-04-14 23:18:10    阅读次数:176
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...
分类:其他好文   时间:2015-04-14 23:12:41    阅读次数:111
HDU 3530 Subsequence(单调队列)
Problem Description There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum el...
分类:其他好文   时间:2015-04-14 21:37:54    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!