Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fterh/leetcode-curation-topical
Tech interview prep list
https://github.com/fterh/leetcode-curation-topical
hacktoberfest
Last synced: 14 days ago
JSON representation
Tech interview prep list
- Host: GitHub
- URL: https://github.com/fterh/leetcode-curation-topical
- Owner: fterh
- Created: 2019-10-14T22:55:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-06T15:47:16.000Z (about 1 year ago)
- Last Synced: 2024-10-01T13:23:47.146Z (2 months ago)
- Topics: hacktoberfest
- Homepage:
- Size: 43.9 KB
- Stars: 1,315
- Watchers: 45
- Forks: 400
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Algorithms-Cheatsheet-Resources - Tech interview prep list
README
# leetcode-curation-topical
Curation of great Leetcode questions, categorized by topic/concept.
My criteria for curation is that questions must be *valuable*, and not just difficult for the sake of being difficult.Valuable questions can usually be solved in a variety of ways with different time/space efficiencies (through the use of various data structures), or require the application of certain common and reusable techniques.
Bad questions are those that are extremely difficult for the sake of being so, and require knowledge of some uncommon technique to solve (which cannot be applied outside a very narrow scope).
Essentially, this is a curation of questions that I personally use to prepare for technical interviews.
Sign up with [Triplebyte](https://triplebyte.com/iv/axLndCI/cp) for free to interview once and apply for multiple top tech companies!
## Arrays/Strings
* [Maximum subarray](https://leetcode.com/problems/maximum-subarray/) (easy)
* [Merge sorted array](https://leetcode.com/problems/merge-sorted-array) (easy)
* [Reverse string](https://leetcode.com/problems/reverse-string/) (easy)
* [3sum](https://leetcode.com/problems/3sum/) (medium)
* [Decode string](https://leetcode.com/problems/decode-string/) (medium)
* [Find first and last position of element in sorted array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/) (medium)
* [Find K pairs with smallest sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) (medium)
* [Kth largest element in an array](https://leetcode.com/problems/kth-largest-element-in-an-array/) (medium)
* [Longest increasing subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) (medium)
* [Maximum product subarray](https://leetcode.com/problems/maximum-product-subarray/) (medium)
* [Minimum number of steps to make two strings anagram](https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/) (medium)
* [Palindromic substrings](https://leetcode.com/problems/palindromic-substrings/) (medium)
* [Product of array except self](https://leetcode.com/problems/product-of-array-except-self/) (medium)
* [Search in rotated sorted array](https://leetcode.com/problems/search-in-rotated-sorted-array/) (medium)
* [Sort colors](https://leetcode.com/problems/sort-colors/) (medium)
* [Subarray sum equals k](https://leetcode.com/problems/subarray-sum-equals-k/) (medium)
* [Best time to buy and sell stock III](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/) (hard)
* [Count of range sum](https://leetcode.com/problems/count-of-range-sum/) (hard)
* [Count of smaller numbers after self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/) (hard)
* [Course schedule III](https://leetcode.com/problems/course-schedule-iii/) (hard)
* [Longest consecutive sequence](https://leetcode.com/problems/longest-consecutive-sequence/) (hard)
* [Merge k sorted lists](https://leetcode.com/problems/merge-k-sorted-lists) (hard)
* [Sliding window maximum](https://leetcode.com/problems/sliding-window-maximum/) (hard)
* [Sliding window median](https://leetcode.com/problems/sliding-window-median/) (hard)
* [Split array largest sum](https://leetcode.com/problems/split-array-largest-sum/) (hard)
* [Trapping rain water](https://leetcode.com/problems/trapping-rain-water/) (hard)
### Sliding Window/Two Pointer
* [Container with most water](https://leetcode.com/problems/container-with-most-water/) (medium)
* [Longest mountain in array](https://leetcode.com/problems/longest-mountain-in-array/) (medium)
* [Longest substring without repeating characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) (medium)
* [Minimum size subarray sum](https://leetcode.com/problems/minimum-size-subarray-sum/) (medium)
* [Permutation in string](https://leetcode.com/problems/permutation-in-string/) (medium)
* [Minimum window substring](https://leetcode.com/problems/minimum-window-substring/) (hard)
### Intervals
* [Merge intervals](https://leetcode.com/problems/merge-intervals) (medium)
* [Non-overlapping intervals](https://leetcode.com/problems/non-overlapping-intervals/) (medium)
* [Insert interval](https://leetcode.com/problems/insert-interval/) (hard)
### Heaps/Priority Queues
* [Maximize sum of array after K negations](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/) (easy)
* [Find K pairs with smallest sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) (medium)
* [Kth largest element in an array](https://leetcode.com/problems/kth-largest-element-in-an-array/) (medium)
* [Task scheduler](https://leetcode.com/problems/task-scheduler/) (medium)
* [Find median from data stream](https://leetcode.com/problems/find-median-from-data-stream/) (hard)
## Linked Lists/Deques
* [Intersection of two linked lists](https://leetcode.com/problems/intersection-of-two-linked-lists/) (easy)
* [Linked list cycle](https://leetcode.com/problems/linked-list-cycle) (easy)
* [Merge two sorted lists](https://leetcode.com/problems/merge-two-sorted-lists) (easy)
* [Palindrome linked list](https://leetcode.com/problems/palindrome-linked-list/) (easy)
* [Remove duplicates from sorted list](https://leetcode.com/problems/remove-duplicates-from-sorted-list/) (easy)
* [Reverse linked list](https://leetcode.com/problems/reverse-linked-list/) (easy)
* [Odd even linked list](https://leetcode.com/problems/odd-even-linked-list/) (medium)
* [Reverse linked list II](https://leetcode.com/problems/reverse-linked-list-ii/) (medium)
* [Rotate list](https://leetcode.com/problems/rotate-list/) (medium)
* [Merge k sorted lists](https://leetcode.com/problems/merge-k-sorted-lists/) (hard)
## Trees
* [Balanced binary tree](https://leetcode.com/problems/balanced-binary-tree/) (easy)
* [Convert sorted array to binary search tree](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/) (easy)
* [Invert binary tree](https://leetcode.com/problems/invert-binary-tree/) (easy)
* [Merge two binary trees](https://leetcode.com/problems/merge-two-binary-trees/) (easy)
* [Range sum of BST](https://leetcode.com/problems/range-sum-of-bst/) (easy)
* [Symmetric tree](https://leetcode.com/problems/symmetric-tree/) (easy)
* [All nodes distance K in binary tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) (medium)
* [Binary tree inorder traversal](https://leetcode.com/problems/binary-tree-inorder-traversal/) (medium)
* [Binary tree level order traversal](https://leetcode.com/problems/binary-tree-level-order-traversal/) (medium)
* [Binary tree zigzag level order traversal](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/) (medium)
* [Binary tree right side view](https://leetcode.com/problems/binary-tree-right-side-view/) (medium)
* [Construct binary tree from inorder and postorder traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) (medium)
* [Construct binary tree from preorder and inorder traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal) (medium)
* [Construct binary tree from preorder and postorder traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal) (medium)
* [Flatten binary tree to linked list](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/) (medium)
* [Kth smallest element in a BST](https://leetcode.com/problems/kth-smallest-element-in-a-bst/) (medium)
* [Lowest common ancestor of a binary tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) (medium)
* [Maximum binary tree](https://leetcode.com/problems/maximum-binary-tree/) (medium)
* [Maximum level sum of a binary tree](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/) (medium)
* [Sum root to leaf numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers/) (medium)
* [Unique binary search trees](https://leetcode.com/problems/unique-binary-search-trees/) (medium)
* [Validate binary search tree](https://leetcode.com/problems/validate-binary-search-tree/) (medium)
* [Binary tree maximum path sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/) (hard)
## Graphs
* [Flood fill](https://leetcode.com/problems/flood-fill/) (easy)
* [Accounts merge](https://leetcode.com/problems/accounts-merge) (medium)
* [Cheapest flights within k stops](https://leetcode.com/problems/cheapest-flights-within-k-stops/) (medium)
* [Course schedule](https://leetcode.com/problems/course-schedule/) (medium)
* [Course schedule II](https://leetcode.com/problems/course-schedule-ii/) (medium)
* [Graph valid tree](https://leetcode.com/problems/graph-valid-tree/) (medium)
* [Pacific atlantic water flow](https://leetcode.com/problems/pacific-atlantic-water-flow/) (medium)
* [Redundant connection](https://leetcode.com/problems/redundant-connection) (medium)
* [Word ladder](https://leetcode.com/problems/word-ladder/) (medium)
* [Word search](https://leetcode.com/problems/word-search/) (medium)
## Recursion/Backtracking
* [Combination Sum](https://leetcode.com/problems/combination-sum/) (medium)
* [Decode ways](https://leetcode.com/problems/decode-ways/) (medium)
* [Permutations](https://leetcode.com/problems/permutations/) (medium)
* [Permutations II (permutations with repetitions)](https://leetcode.com/problems/permutations-ii/) (medium)
* [Subsets](https://leetcode.com/problems/subsets/) (medium)
* [Interleaving string](https://leetcode.com/problems/interleaving-string/) (hard)
* [Remove invalid parentheses](https://leetcode.com/problems/remove-invalid-parentheses/) (hard)
## Dynamic Programming
* [Climbing stairs](https://leetcode.com/problems/climbing-stairs/) (easy)
* [Decode ways](https://leetcode.com/problems/decode-ways/) (medium)
* [Jump game](https://leetcode.com/problems/jump-game/) (medium)
* [Longest increasing subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) (medium)
* [Minimum path sum](https://leetcode.com/problems/minimum-path-sum/) (medium)
* [Unique paths](https://leetcode.com/problems/unique-paths/) (medium)
* [Best time to buy and sell stock III](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/) (hard)
* [Interleaving string](https://leetcode.com/problems/interleaving-string/) (hard)
* [Jump game II](https://leetcode.com/problems/jump-game-ii) (hard)
* [Edit distance](https://leetcode.com/problems/edit-distance/) (hard)
* [Wildcard matching](https://leetcode.com/problems/wildcard-matching/) (hard)
## Design & Implementation
* [Implement queue using stacks](https://leetcode.com/problems/implement-queue-using-stacks/) (easy)
* [Min stack](https://leetcode.com/problems/min-stack/) (easy)
* [Binary search tree iterator](https://leetcode.com/problems/binary-search-tree-iterator/) (medium) **(implementation should be lazy)**
* [Flatten nested list iterator](https://leetcode.com/problems/flatten-nested-list-iterator/) (medium) **(implementation should be lazy)**
* [Implement trie (prefix tree)](https://leetcode.com/problems/implement-trie-prefix-tree/) (medium)
* [LRU cache](https://leetcode.com/problems/lru-cache) (medium)
## Greedy
* [Longest Palindrome](https://leetcode.com/problems/longest-palindrome/) (easy)
* [Minimum Cost to Move Chips to The Same Position](https://leetcode.com/problems/minimum-cost-to-move-chips-to-the-same-position/) (easy)
* [Balance a Binary Search Tree](https://leetcode.com/problems/balance-a-binary-search-tree/) (medium)
* [Bulb Switcher IV](https://leetcode.com/problems/bulb-switcher-iv/) (medium)
* [Candy](https://leetcode.com/problems/candy/) (hard)
* [Couples holding hands](https://leetcode.com/problems/couples-holding-hands/) (hard)