码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果
3. Longest Substring Without Repeating Characters 最长的子串不重复字符
Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length... ...
分类:其他好文   时间:2018-02-12 23:41:19    阅读次数:317
3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:其他好文   时间:2018-02-12 00:47:59    阅读次数:214
学习记录---KMP算法-部分匹配表理解
如需转载,请保留本文链接. 看了 阮一峰 大神的字符串匹配的KMP算法后,关于部分匹配的部分并不是很理解,特意去看了阮大神文章中的英文链接,这里写下自己的理解,用作学习记录. 阮大神文章链接:https://kb.cnblogs.com/page/176818/ Jake Boxer 英文博文链接: ...
分类:编程语言   时间:2018-02-07 22:55:44    阅读次数:256
Codeforces-5C. Longest Regular Bracket Sequence
传送门 ...
分类:其他好文   时间:2018-02-07 19:38:20    阅读次数:136
寒假 6(计划更改)
遇到了一道题:longest substring with at most two distinct characters 我用sliding window解了,看到有个解法中有用到hash table的,至此了解到数据结构的概念,决定更改计划。 开始学习《数据结构与算法分析 c语言实现》。 此处附 ...
分类:其他好文   时间:2018-02-06 23:12:36    阅读次数:330
PAT 1096. Consecutive Factors
Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3 5 6 7, where 5, 6, a ...
分类:其他好文   时间:2018-02-06 10:20:10    阅读次数:188
78. Longest Common Prefix【medium】
Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common ...
分类:其他好文   时间:2018-02-04 19:32:36    阅读次数:101
LeetCode 424. Longest Repeating Character Replacement
原题链接在这里:https://leetcode.com/problems/longest-repeating-character-replacement/description/ 题目: Given a string that consists of only uppercase English ...
分类:其他好文   时间:2018-02-04 11:08:28    阅读次数:149
尺取法 || POJ 2739 Sum of Consecutive Prime Numbers
给一个数 写成连续质数的和的形式,能写出多少种 *解法:先筛质数 然后尺取法 **尺取法:固定区间左、右端点为0,如果区间和比目标值大则右移左端点,比目标值小则右移右端点 详见http://blog.csdn.net/consciousman/article/details/52348439 #in ...
分类:其他好文   时间:2018-02-03 19:56:56    阅读次数:169
寒假 5
1. 哈希表:数据结构的一种,通过关键字和哈希函数加快查找速度 哈希表需要构建, 哈希表对待查数据构造商群,到一个关键字集合中,使用商群到原集的映射,每个关键字映射到一个等价类集合,通过关键字查找到对应的数据地址,在同一个等价类中,又有其他的秩序,便于系统的寻址 不同元素在同一等价类中的现象称为,哈 ...
分类:其他好文   时间:2018-02-02 23:14:22    阅读次数:183
3017条   上一页 1 ... 80 81 82 83 84 ... 302 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!