2020-12-18 10:31:50 +01:00
|
|
|
# This list is from:
|
|
|
|
# https://www.teamblind.com/post/New-Year-Gift---Curated-List-of-Top-100-LeetCode-Questions-to-Save-Your-Time-OaM1orEU
|
|
|
|
* Array
|
2020-12-18 15:40:19 +01:00
|
|
|
** DONE Two Sum
|
|
|
|
https://leetcode.com/problems/two-sum/
|
|
|
|
** DONE Best Time to Buy and Sell Stock
|
|
|
|
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
|
|
|
|
** DONE Contains Duplicate
|
|
|
|
https://leetcode.com/problems/contains-duplicate/
|
|
|
|
** DONE Product of Array Except Self
|
|
|
|
https://leetcode.com/problems/product-of-array-except-self/
|
|
|
|
** DONE Maximum Subarray
|
|
|
|
https://leetcode.com/problems/maximum-subarray/
|
|
|
|
** DONE Maximum Product Subarray
|
|
|
|
https://leetcode.com/problems/maximum-product-subarray/
|
|
|
|
** DONE Find Minimum in Rotated Sorted Array
|
|
|
|
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
|
|
|
|
** DONE Search in Rotated Sorted Array
|
|
|
|
https://leetcode.com/problems/search-in-rotated-sorted-array/
|
|
|
|
** DONE 3Sum
|
|
|
|
https://leetcode.com/problems/3sum/
|
|
|
|
** DONE Container With Most Water
|
|
|
|
https://leetcode.com/problems/container-with-most-water/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Binary
|
2020-12-25 04:50:18 +01:00
|
|
|
** DONE Sum of Two Integers
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/sum-of-two-integers/
|
|
|
|
** DONE Number of 1 Bits
|
|
|
|
https://leetcode.com/problems/number-of-1-bits/
|
|
|
|
** TODO Counting Bits
|
|
|
|
https://leetcode.com/problems/counting-bits/
|
|
|
|
** DONE Missing Number
|
|
|
|
https://leetcode.com/problems/missing-number/
|
|
|
|
** TODO Reverse Bits
|
|
|
|
https://leetcode.com/problems/reverse-bits/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Dynamic Programming
|
2020-12-25 04:52:13 +01:00
|
|
|
** DONE Climbing Stairs
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/climbing-stairs/
|
|
|
|
** TODO Coin Change
|
|
|
|
https://leetcode.com/problems/coin-change/
|
|
|
|
** TODO Longest Increasing Subsequence
|
|
|
|
https://leetcode.com/problems/longest-increasing-subsequence/
|
|
|
|
** TODO Longest Common Subsequence
|
|
|
|
** DONE Word Break Problem
|
|
|
|
https://leetcode.com/problems/word-break/
|
|
|
|
** TODO Combination Sum
|
|
|
|
https://leetcode.com/problems/combination-sum-iv/
|
|
|
|
** TODO House Robber
|
|
|
|
https://leetcode.com/problems/house-robber/
|
|
|
|
** TODO House Robber II
|
|
|
|
https://leetcode.com/problems/house-robber-ii/
|
|
|
|
** TODO Decode Ways
|
|
|
|
https://leetcode.com/problems/decode-ways/
|
|
|
|
** TODO Unique Paths
|
|
|
|
https://leetcode.com/problems/unique-paths/
|
|
|
|
** TODO Jump Game
|
|
|
|
https://leetcode.com/problems/jump-game/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Graph
|
2020-12-18 15:40:19 +01:00
|
|
|
** DONE Clone Graph
|
|
|
|
https://leetcode.com/problems/clone-graph/
|
|
|
|
** DONE Course Schedule
|
|
|
|
https://leetcode.com/problems/course-schedule/
|
|
|
|
** TODO Pacific Atlantic Water Flow
|
|
|
|
https://leetcode.com/problems/pacific-atlantic-water-flow/
|
|
|
|
** DONE Number of Islands
|
|
|
|
https://leetcode.com/problems/number-of-islands/
|
|
|
|
** TODO Longest Consecutive Sequence
|
|
|
|
https://leetcode.com/problems/longest-consecutive-sequence/
|
|
|
|
** TODO Alien Dictionary (Leetcode Premium)
|
|
|
|
https://leetcode.com/problems/alien-dictionary/
|
2021-01-22 11:45:32 +01:00
|
|
|
** DONE Graph Valid Tree (Leetcode Premium)
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/graph-valid-tree/
|
|
|
|
** DONE Number of Connected Components in an Undirected Graph (Leetcode Premium)
|
|
|
|
https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Interval
|
2020-12-18 15:40:19 +01:00
|
|
|
** TODO Insert Interval
|
|
|
|
https://leetcode.com/problems/insert-interval/
|
|
|
|
** DONE Merge Intervals
|
|
|
|
https://leetcode.com/problems/merge-intervals/
|
|
|
|
** TODO No Overlapping Intervals
|
|
|
|
https://leetcode.com/problems/non-overlapping-intervals/
|
|
|
|
** DONE Meeting Rooms (Leetcode Premium)
|
|
|
|
https://leetcode.com/problems/meeting-rooms/
|
|
|
|
** TODO Meeting Rooms II (Leetcode Premium)
|
|
|
|
https://leetcode.com/problems/meeting-rooms-ii/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Linked List
|
2020-12-18 15:40:19 +01:00
|
|
|
** DONE Reverse a Linked List
|
|
|
|
https://leetcode.com/problems/reverse-linked-list/
|
|
|
|
** DONE Detect Cycle in a Linked List
|
|
|
|
https://leetcode.com/problems/linked-list-cycle/
|
|
|
|
** DONE Merge Two Sorted Lists
|
|
|
|
https://leetcode.com/problems/merge-two-sorted-lists/
|
|
|
|
** DONE Merge K Sorted Lists
|
|
|
|
https://leetcode.com/problems/merge-k-sorted-lists/
|
2020-12-18 20:55:18 +01:00
|
|
|
** DONE Remove Nth Node From End Of List
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/remove-nth-node-from-end-of-list/
|
2020-12-18 20:55:18 +01:00
|
|
|
** DONE Reorder List
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/reorder-list/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Matrix
|
2020-12-22 04:03:11 +01:00
|
|
|
** DONE Set Matrix Zeroes
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/set-matrix-zeroes/
|
2020-12-22 04:03:11 +01:00
|
|
|
** DONE Spiral Matrix
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/spiral-matrix/
|
|
|
|
** TODO Rotate Image
|
|
|
|
https://leetcode.com/problems/rotate-image/
|
2020-12-22 04:03:11 +01:00
|
|
|
** DONE Word Search
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/word-search/
|
2020-12-18 10:31:50 +01:00
|
|
|
* String
|
2020-12-18 15:40:19 +01:00
|
|
|
** TODO Longest Substring Without Repeating Characters
|
|
|
|
https://leetcode.com/problems/longest-substring-without-repeating-characters/
|
|
|
|
** TODO Longest Repeating Character Replacement
|
|
|
|
https://leetcode.com/problems/longest-repeating-character-replacement/
|
|
|
|
** TODO Minimum Window Substring
|
|
|
|
https://leetcode.com/problems/minimum-window-substring/
|
2020-12-25 04:52:54 +01:00
|
|
|
** DONE Valid Anagram
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/valid-anagram/
|
2020-12-25 04:52:54 +01:00
|
|
|
** DONE Group Anagrams
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/group-anagrams/
|
|
|
|
** DONE Valid Parentheses
|
|
|
|
https://leetcode.com/problems/valid-parentheses/
|
|
|
|
** DONE Valid Palindrome
|
|
|
|
https://leetcode.com/problems/valid-palindrome/
|
|
|
|
** TODO Longest Palindromic Substring
|
|
|
|
https://leetcode.com/problems/longest-palindromic-substring/
|
|
|
|
** TODO Palindromic Substrings
|
|
|
|
https://leetcode.com/problems/palindromic-substrings/
|
2020-12-25 04:52:54 +01:00
|
|
|
** DONE Encode and Decode Strings (Leetcode Premium)
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/encode-and-decode-strings/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Tree
|
2020-12-18 15:40:19 +01:00
|
|
|
** DONE Maximum Depth of Binary Tree
|
|
|
|
https://leetcode.com/problems/maximum-depth-of-binary-tree/
|
|
|
|
** DONE Same Tree
|
|
|
|
https://leetcode.com/problems/same-tree/
|
|
|
|
** DONE Invert/Flip Binary Tree
|
|
|
|
https://leetcode.com/problems/invert-binary-tree/
|
2020-12-22 19:21:49 +01:00
|
|
|
** DONE Binary Tree Maximum Path Sum
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/binary-tree-maximum-path-sum/
|
2020-12-22 19:21:49 +01:00
|
|
|
** DONE Binary Tree Level Order Traversal
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/binary-tree-level-order-traversal/
|
|
|
|
** DONE Serialize and Deserialize Binary Tree
|
|
|
|
https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
|
2020-12-22 19:21:49 +01:00
|
|
|
** DONE Subtree of Another Tree
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/subtree-of-another-tree/
|
2020-12-25 04:56:44 +01:00
|
|
|
** DONE Construct Binary Tree from Preorder and Inorder Traversal
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
|
2020-12-25 04:56:44 +01:00
|
|
|
** DONE Validate Binary Search Tree
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/validate-binary-search-tree/
|
2020-12-25 04:56:44 +01:00
|
|
|
** DONE Kth Smallest Element in a BST
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/kth-smallest-element-in-a-bst/
|
|
|
|
** DONE Lowest Common Ancestor of BST
|
|
|
|
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
|
|
|
|
** DONE Implement Trie (Prefix Tree)
|
|
|
|
https://leetcode.com/problems/implement-trie-prefix-tree/
|
|
|
|
** DONE Add and Search Word
|
|
|
|
https://leetcode.com/problems/add-and-search-word-data-structure-design/
|
2020-12-22 19:21:49 +01:00
|
|
|
** DONE Word Search II
|
2020-12-18 15:40:19 +01:00
|
|
|
https://leetcode.com/problems/word-search-ii/
|
2020-12-18 10:31:50 +01:00
|
|
|
* Heap
|
2020-12-18 15:40:19 +01:00
|
|
|
** DONE Merge K Sorted Lists
|
|
|
|
https://leetcode.com/problems/merge-k-sorted-lists/
|
|
|
|
** DONE Top K Frequent Elements
|
|
|
|
https://leetcode.com/problems/top-k-frequent-elements/
|
|
|
|
** DONE Find Median from Data Stream
|
|
|
|
https://leetcode.com/problems/find-median-from-data-stream/
|