├── .gitignore └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | secrets 2 | haters/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This my personal list of recommended problems to do for interview preparation. 2 | Aim to be able to do mediums in < 30 mins. 3 | NOTE: 4 | - A problem often has valid approaches other than the category it's under. 5 | - The fact there is a category at all is often a large hint that you would not normally have. 6 | 7 | # Graphs 8 | - https://leetcode.com/problems/number-of-islands/ 9 | - https://leetcode.com/problems/course-schedule/ 10 | - https://leetcode.com/problems/course-schedule-ii/ 11 | - https://leetcode.com/problems/rotting-oranges/ 12 | - https://leetcode.com/problems/pacific-atlantic-water-flow/ 13 | - https://leetcode.com/problems/word-search/ 14 | # Arrays 15 | - https://leetcode.com/problems/product-of-array-except-self/ 16 | - https://leetcode.com/problems/maximum-subarray/ 17 | - https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ 18 | - https://leetcode.com/problems/move-zeroes/ 19 | - https://leetcode.com/problems/3sum/ 20 | # Hashes 21 | - https://leetcode.com/problems/two-sum/ 22 | - https://leetcode.com/problems/group-anagrams/ 23 | # Linked Lists 24 | - https://leetcode.com/problems/reverse-linked-list/ 25 | - https://leetcode.com/problems/linked-list-cycle/ 26 | - https://leetcode.com/problems/merge-two-sorted-lists/ 27 | # 2D Arrays 28 | - https://leetcode.com/problems/spiral-matrix/ 29 | - https://leetcode.com/problems/search-a-2d-matrix/ 30 | - https://leetcode.com/problems/set-matrix-zeroes/ 31 | # Sorting 32 | - https://leetcode.com/problems/merge-intervals/ 33 | # Strings 34 | - https://leetcode.com/problems/positions-of-large-groups/ 35 | - https://leetcode.com/problems/valid-anagram/ 36 | - https://leetcode.com/problems/longest-palindromic-substring/ 37 | - https://leetcode.com/problems/longest-substring-without-repeating-characters/ 38 | - https://leetcode.com/problems/add-strings 39 | # Trees 40 | - https://leetcode.com/problems/maximum-depth-of-binary-tree/ 41 | - https://leetcode.com/problems/kth-smallest-element-in-a-bst/ 42 | - https://leetcode.com/problems/time-needed-to-inform-all-employees/ 43 | # Heaps 44 | - https://leetcode.com/problems/top-k-frequent-elements/ 45 | - https://leetcode.com/problems/kth-largest-element-in-an-array/ 46 | # Tries 47 | - https://leetcode.com/problems/implement-trie-prefix-tree/ 48 | - https://leetcode.com/problems/word-search-ii/ 49 | # Queues / Stacks 50 | - https://leetcode.com/problems/implement-queue-using-stacks/ 51 | - https://leetcode.com/problems/valid-parentheses/ 52 | # Monotonic Stacks and Sequences 53 | - https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/ 54 | - https://leetcode.com/problems/daily-temperatures 55 | - https://leetcode.com/problems/largest-rectangle-in-histogram/ 56 | # Recursion 57 | - https://leetcode.com/problems/subsets/ 58 | # Two Pointer / Sliding Window 59 | - https://leetcode.com/problems/valid-palindrome/ 60 | - https://leetcode.com/problems/container-with-most-water/ 61 | # Dynamic Programming 62 | - https://leetcode.com/problems/unique-paths/ 63 | - https://leetcode.com/problems/coin-change/ 64 | - https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ 65 | - https://leetcode.com/problems/longest-increasing-subsequence 66 | # Math / Binary 67 | - https://leetcode.com/problems/missing-number/ 68 | # Combining Data Structures 69 | - https://leetcode.com/problems/lru-cache/ 70 | - https://leetcode.com/problems/insert-delete-getrandom-o1/ 71 | # Binary Search 72 | - https://leetcode.com/problems/search-in-rotated-sorted-array/ 73 | - https://leetcode.com/problems/capacity-to-ship-packages-within-d-days 74 | - https://leetcode.com/problems/koko-eating-bananas/ 75 | # Greedy 76 | - https://leetcode.com/problems/task-scheduler/ 77 | # Disjoint Sets and Union Find 78 | - https://leetcode.com/problems/min-cost-to-connect-all-points/ 79 | - https://leetcode.com/problems/number-of-operations-to-make-network-connected/ 80 | # :) ? 81 | - https://leetcode.com/problems/trapping-rain-water/ 82 | - https://leetcode.com/problems/median-of-two-sorted-arrays/ 83 | --------------------------------------------------------------------------------