I write data structures/algorithms as a refresher in my free time.
- https://leetcode.com/problems/two-sum/
- https://leetcode.com/problems/3sum/
- https://leetcode.com/problems/container-with-most-water/
- https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
- https://leetcode.com/problems/merge-sorted-array/
- https://leetcode.com/problems/move-zeroes/
- https://leetcode.com/problems/remove-duplicates-from-sorted-array/
- https://leetcode.com/problems/sort-colors/
- https://leetcode.com/problems/partition-labels
- https://leetcode.com/problems/find-all-duplicates-in-an-array
- https://leetcode.com/problems/product-of-array-except-self/
- https://leetcode.com/problems/search-a-2d-matrix/
- https://leetcode.com/problems/valid-palindrome
- https://leetcode.com/problems/valid-palindrome-ii
- https://leetcode.com/problems/first-unique-character-in-a-string
- https://leetcode.com/problems/group-anagrams
- https://leetcode.com/problems/longest-palindromic-substring
- https://leetcode.com/problems/most-common-word
- https://leetcode.com/problems/jump-game (amazing question)
- https://leetcode.com/problems/jump-game-ii/
- https://leetcode.com/problems/minimum-size-subarray-sum/
- https://leetcode.com/problems/linked-list-cycle/
- https://leetcode.com/problems/reverse-linked-list
- https://leetcode.com/problems/odd-even-linked-list
- https://leetcode.com/problems/copy-list-with-random-pointer
- https://leetcode.com/problems/binary-tree-preorder-traversal/
- https://leetcode.com/problems/binary-tree-postorder-traversal
- https://leetcode.com/problems/maximum-depth-of-binary-tree/
- https://leetcode.com/problems/binary-tree-level-order-traversal/
- https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
- https://leetcode.com/problems/invert-binary-tree
- https://leetcode.com/problems/binary-tree-right-side-view
- https://leetcode.com/problems/find-the-celebrity/
- https://leetcode.com/problems/number-of-islands
- https://leetcode.com/problems/longest-substring-without-repeating-characters
- https://leetcode.com/problems/divide-two-integers (Ques that looks easy, is actullay hard but is marked medium)
- https://leetcode.com/problems/powx-n (same as above.. can't solve these questions without already knowning them)
- https://leetcode.com/problems/next-permutation
- https://leetcode.com/problems/verifying-an-alien-dictionary/
- https://leetcode.com/problems/k-closest-points-to-origin/
- https://leetcode.com/problems/trapping-rain-wate (very imp question)
- https://leetcode.com/problems/subarray-sum-equals-k (very tricky)
- https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses (NICE ;) solution)
- https://leetcode.com/problems/word-break/
- https://leetcode.com/problems/add-strings/
- https://leetcode.com/problems/best-time-to-buy-and-sell-stock
- https://leetcode.com/problems/combination-sum/
- https://leetcode.com/problems/lru-cache/submissions/
- https://leetcode.com/problems/number-of-islands/
- https://leetcode.com/problems/merge-intervals/
- https://leetcode.com/problems/maximum-subarray/
- https://leetcode.com/problems/add-two-numbers/
- https://leetcode.com/problems/insert-delete-getrandom-o1/
- https://leetcode.com/problems/kth-largest-element-in-an-array/
- https://leetcode.com/problems/basic-calculator-ii/
- https://leetcode.com/problems/word-search/
- https://leetcode.com/problems/container-with-most-water/
- https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
- https://leetcode.com/problems/letter-combinations-of-a-phone-number/
- https://leetcode.com/problems/game-of-life/
- https://leetcode.com/problems/top-k-frequent-elements/
- https://leetcode.com/problems/rotate-image/
- https://leetcode.com/problems/spiral-matrix/
- https://leetcode.com/problems/flatten-nested-list-iterator/
- https://leetcode.com/problems/powx-n/
- https://leetcode.com/problems/reverse-integer/
- https://leetcode.com/problems/longest-consecutive-sequence/
- https://leetcode.com/problems/search-in-rotated-sorted-array/
- https://leetcode.com/problems/longest-substring-without-repeating-characters
- https://leetcode.com/explore/interview/card/google/67/sql-2/3044/
- https://leetcode.com/explore/interview/card/google/67/sql-2/3046
- https://leetcode.com/problems/next-permutation/
- https://leetcode.com/problems/multiply-strings/
- https://leetcode.com/problems/jump-game
- https://leetcode.com/problems/plus-one/
- https://leetcode.com/problems/missing-ranges
- https://leetcode.com/problems/next-closest-time/
- https://leetcode.com/problems/expressive-words/
- https://leetcode.com/problems/find-and-replace-in-string/
- https://leetcode.com/problems/maximize-distance-to-closest-person/
- https://leetcode.com/problems/minimum-cost-to-hire-k-workers
- https://leetcode.com/problems/valid-parentheses/
- https://leetcode.com/problems/remove-nth-node-from-end-of-list/
- https://leetcode.com/problems/merge-two-sorted-lists/
- https://leetcode.com/problems/copy-list-with-random-pointer/
- https://leetcode.com/problems/binary-tree-maximum-path-sum/
- https://leetcode.com/problems/course-schedule
- https://leetcode.com/problems/count-complete-tree-nodes/
- https://leetcode.com/problems/longest-increasing-path-in-a-matrix
- https://leetcode.com/problems/decode-string
- https://leetcode.com/problems/evaluate-division/
- https://leetcode.com/problems/diameter-of-binary-tree
- https://leetcode.com/problems/cracking-the-safe
- https://leetcode.com/problems/word-squares/
- https://leetcode.com/problems/strobogrammatic-number-ii/
- https://leetcode.com/problems/word-search-ii/
- https://leetcode.com/problems/letter-combinations-of-a-phone-number/ (same as topinterview)
- https://leetcode.com/problems/generate-parentheses/
- https://leetcode.com/problems/android-unlock-patterns/
Some solutions are inspired/copied from discussions/solutions section of leetcode.