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
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
git log --pretty=tformat: --since ==2016-10-25 --until=2016-10-27 --numstat | awk '{ add += $1 ; subs += $2 ; loc += $1 + $2 } END { printf "added lin ...
分类:
其他好文 时间:
2018-02-11 12:32:43
阅读次数:
154
如需转载,请保留本文链接. 看了 阮一峰 大神的字符串匹配的KMP算法后,关于部分匹配的部分并不是很理解,特意去看了阮大神文章中的英文链接,这里写下自己的理解,用作学习记录. 阮大神文章链接:https://kb.cnblogs.com/page/176818/ Jake Boxer 英文博文链接: ...
分类:
编程语言 时间:
2018-02-07 22:55:44
阅读次数:
256
遇到了一道题:longest substring with at most two distinct characters 我用sliding window解了,看到有个解法中有用到hash table的,至此了解到数据结构的概念,决定更改计划。 开始学习《数据结构与算法分析 c语言实现》。 此处附 ...
分类:
其他好文 时间:
2018-02-06 23:12:36
阅读次数:
330
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
原题链接在这里: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
Description Farmer John is trying to figure out when his last shipment of feed arrived. Starting with an empty grain bin, he ordered and received F1 ( ...
分类:
其他好文 时间:
2018-02-04 00:28:47
阅读次数:
164
1. 哈希表:数据结构的一种,通过关键字和哈希函数加快查找速度 哈希表需要构建, 哈希表对待查数据构造商群,到一个关键字集合中,使用商群到原集的映射,每个关键字映射到一个等价类集合,通过关键字查找到对应的数据地址,在同一个等价类中,又有其他的秩序,便于系统的寻址 不同元素在同一等价类中的现象称为,哈 ...
分类:
其他好文 时间:
2018-02-02 23:14:22
阅读次数:
183