LeetCode
仲夏荧之火
这个作者很懒,什么都没留下…
展开
-
LeetCode-Top K Frequent Elements
leetCode- Top K Frequent ElementsGiven a non-empty array of integers, return the k most frequent elements.Example 1:Input: nums = [1,1,1,2,2,3], k = 2Output: [1,2]Example 2:Input: nums = [1], k ...原创 2019-05-05 14:41:46 · 164 阅读 · 0 评论 -
[LeetCode] Longest Substring Without Repeating Characters 最长无重复字符的子串
[LeetCode] Longest Substring Without Repeating Characters 最长无重复字符的子串Given a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb”Output: 3Expla...原创 2019-05-05 15:01:45 · 124 阅读 · 0 评论