鏈接:https://leetcode.com/tag/union-find/ 【128】Longest Consecutive Sequence (2018年11月22日,開始解決hard題 ...
鏈接:https://leetcode.com/tag/union-find/ 【128】Longest Consecutive Sequence (2018年11月22日,開始解決hard題 ...
第一部分---線段樹:https://leetcode.com/tag/segment-tree/ 【218】The Skyline Problem 【307】Range Sum Que ...
鏈接:https://leetcode.com/tag/sort/ 【56】Merge Intervals (2019年1月26日,谷歌tag復習) 合並區間 題解:先按照interva ...
【20】Valid Parentheses (2018年11月28日,復習, ko) 給了一個字符串判斷是不是合法的括號配對。 題解:直接stack Vie ...
【384】Shuffle an Array(2019年3月12日) Shuffle a set of numbers without duplicates. 實現一個類,里面有兩個 api,s ...
鏈接:https://leetcode.com/tag/divide-and-conquer/ 【4】Median of Two Sorted Arrays 【23】Merge k S ...
【208】Implement Trie (Prefix Tree) (2018年11月27日) 實現基本的 trie 樹,包括 insert, search, startWith 操作等 api ...
鏈接:https://leetcode.com/tag/design/ 【146】LRU Cache 【155】Min Stack 【170】Two Sum III - Da ...
導語 所有的編程練習都在牛客網OJ提交,鏈接: https://www.nowcoder.com/ta/coding-interviews 九章算法的 lintcode 也有這本書的題目。http ...
鏈接:https://leetcode.com/tag/heap/ 【23】 Merge k Sorted Lists 【215】 Kth Largest Element in an Array ...