摘要:
## Kth Kth Largest Element in an Array [LeetCode](https://leetcode.com/problems/kth-largest-element-in-an-array)/[力扣](https://leetcode-cn.com/problems 阅读全文
摘要:
## Find Median from Data Stream [LeetCode](https://leetcode.com/problems/find-median-from-data-stream/)/[力扣](https://leetcode-cn.com/problems/find-med 阅读全文
摘要:
Letter Combinations of a Phone Number LeetCode/力扣 vector<string> letterCombinations(string digits) { if(digits.length() == 0) return {}; map<char,stri 阅读全文
摘要:
Two Sum LeetCode/力扣 先排序 排序完,用两个指针分别指向第一个和最后一个 根据和,分别移动前后指针 上述方法需要额外保存排序前的位置,所以可解,但不推荐,现给出排序好的解法(不是当前题目解法) vector<int> twoSum(vector<int>& nums, int ta 阅读全文
摘要:
Longest Substring Without Repeating Characters LeetCode/力扣 用一个子串保存当前的窗口,查找下一个字符在子串的位置 如果为-1,则将字符加入子串,即窗口右移动 如果不为-1, 将窗口左边移动到子串中最后一个字符的下一个字符所在位置 int le 阅读全文