
LeetCode
文章平均质量分 91
黑山白雪m
私信不回
展开
-
Python 编程进阶经典算法逻辑编程 剑指Offer
1.找到数组中重复数字(字符),返回出现频次最多 字典方法,时间复杂度O(N) +O(1) def maxf(x): a = dict() max = 0 for i in x: tem = str(i) a[tem] = a.get(tem,0) + 1 if max < a[tem]:...原创 2017-10-29 15:49:35 · 4372 阅读 · 0 评论 -
LeetCode Python
[LeetCode] 3. Longest Substring Without Repeating Characters 最长无重复字符的子串 Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" O...原创 2020-04-12 10:50:34 · 192 阅读 · 0 评论