A list of problems and their solutions from various sources such as LeetCode, HackerNews, AoC, etc.
Implementations in this repository may change depending on my mood for selection. Here are the possible languages that I'll use: C/C , Rust, Go, Zig, Python.
LeetCode
- https://leetcode.com/problems/two-sum
- https://leetcode.com/problems/valid-parentheses
- https://leetcode.com/problems/merge-two-sorted-lists
- https://leetcode.com/problems/best-time-to-buy-and-sell-stock
- https://leetcode.com/problems/valid-palindrome
- https://leetcode.com/problems/invert-binary-tree
- https://leetcode.com/problems/valid-anagram
- https://leetcode.com/problems/binary-search
- https://leetcode.com/problems/flood-fill
- https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
- https://leetcode.com/problems/balanced-binary-tree
- https://leetcode.com/problems/linked-list-cycle
- https://leetcode.com/problems/implement-queue-using-stacks
- https://leetcode.com/problems/first-bad-version
- https://leetcode.com/problems/ransom-note
- https://leetcode.com/problems/climbing-stairs
- https://leetcode.com/problems/longest-palindrome
- https://leetcode.com/problems/reverse-linked-list
- https://leetcode.com/problems/majority-element
- https://leetcode.com/problems/add-binary
- https://leetcode.com/problems/diameter-of-binary-tree
- https://leetcode.com/problems/maximum-depth-of-binary-tree
- https://leetcode.com/problems/contains-duplicate
- https://leetcode.com/problems/roman-to-integer
- https://leetcode.com/problems/backspace-string-compare
- https://leetcode.com/problems/counting-bits
- https://leetcode.com/problems/same-tree
- https://leetcode.com/problems/number-of-1-bits
- https://leetcode.com/problems/longest-common-prefix
- https://leetcode.com/problems/single-number
- https://leetcode.com/problems/palindrome-linked-list
- https://leetcode.com/problems/move-zeroes
- https://leetcode.com/problems/symmetric-tree
- https://leetcode.com/problems/missing-number
- https://leetcode.com/problems/palindrome-number
- https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
- https://leetcode.com/problems/reverse-bits
- https://leetcode.com/problems/subtree-of-another-tree
- https://leetcode.com/problems/squares-of-a-sorted-array
- https://leetcode.com/problems/maximum-subarray
- https://leetcode.com/problems/insert-interval
- https://leetcode.com/problems/01-matrix
- https://leetcode.com/problems/k-closest-points-to-origin
- https://leetcode.com/problems/longest-substring-without-repeating-characters
- https://leetcode.com/problems/3sum
- https://leetcode.com/problems/binary-tree-level-order-traversal
- https://leetcode.com/problems/clone-graph
- https://leetcode.com/problems/evaluate-reverse-polish-notation
- https://leetcode.com/problems/course-schedule
- https://leetcode.com/problems/implement-trie-prefix-tree
- https://leetcode.com/problems/coin-change
- https://leetcode.com/problems/product-of-array-except-self
- https://leetcode.com/problems/min-stack
- https://leetcode.com/problems/validate-binary-search-tree
- https://leetcode.com/problems/number-of-islands
- https://leetcode.com/problems/rotting-oranges
- https://leetcode.com/problems/search-in-rotated-sorted-array
- https://leetcode.com/problems/combination-sum
- https://leetcode.com/problems/permutations
- https://leetcode.com/problems/merge-intervals
- https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
- https://leetcode.com/problems/time-based-key-value-store
- https://leetcode.com/problems/accounts-merge
- https://leetcode.com/problems/sort-colors
- https://leetcode.com/problems/word-break
- https://leetcode.com/problems/partition-equal-subset-sum
- https://leetcode.com/problems/string-to-integer-atoi
- https://leetcode.com/problems/subsets
- https://leetcode.com/problems/spiral-matrix
- https://leetcode.com/problems/binary-tree-right-side-view
- https://leetcode.com/problems/longest-palindromic-substring
- https://leetcode.com/problems/unique-paths
- https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
- https://leetcode.com/problems/container-with-most-water
- https://leetcode.com/problems/letter-combinations-of-a-phone-number
- https://leetcode.com/problems/word-search
- https://leetcode.com/problems/find-all-anagrams-in-a-string
- https://leetcode.com/problems/minimum-height-trees
- https://leetcode.com/problems/task-scheduler
- https://leetcode.com/problems/lru-cache
- https://leetcode.com/problems/kth-smallest-element-in-a-bst
- https://leetcode.com/problems/daily-temperatures
- https://leetcode.com/problems/house-robber
- https://leetcode.com/problems/gas-station
- https://leetcode.com/problems/next-permutation
- https://leetcode.com/problems/valid-sudoku
- https://leetcode.com/problems/group-anagrams
- https://leetcode.com/problems/maximum-product-subarray
- https://leetcode.com/problems/design-add-and-search-words-data-structure
- https://leetcode.com/problems/pacific-atlantic-water-flow
- https://leetcode.com/problems/remove-nth-node-from-end-of-list
- https://leetcode.com/problems/find-the-duplicate-number
- https://leetcode.com/problems/top-k-frequent-words
- https://leetcode.com/problems/longest-increasing-subsequence
- https://leetcode.com/problems/course-schedule-ii
- https://leetcode.com/problems/swap-nodes-in-pairs
- https://leetcode.com/problems/path-sum-ii
- https://leetcode.com/problems/longest-consecutive-sequence
- https://leetcode.com/problems/rotate-array
- https://leetcode.com/problems/odd-even-linked-list
- https://leetcode.com/problems/decode-string
- https://leetcode.com/problems/contiguous-array
- https://leetcode.com/problems/maximum-width-of-binary-tree
- https://leetcode.com/problems/find-k-closest-elements
- https://leetcode.com/problems/longest-repeating-character-replacement
- https://leetcode.com/problems/jump-game
- https://leetcode.com/problems/add-two-numbers
- https://leetcode.com/problems/generate-parentheses
- https://leetcode.com/problems/sort-list
- https://leetcode.com/problems/subarray-sum-equals-k
- https://leetcode.com/problems/asteroid-collision
- https://leetcode.com/problems/random-pick-with-weight
- https://leetcode.com/problems/kth-largest-element-in-an-array
- https://leetcode.com/problems/maximal-square
- https://leetcode.com/problems/rotate-image
- https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
- https://leetcode.com/problems/path-sum-iii
- https://leetcode.com/problems/powx-n
- https://leetcode.com/problems/search-a-2d-matrix
- https://leetcode.com/problems/largest-number
- https://leetcode.com/problems/decode-ways
- https://leetcode.com/problems/reverse-integer
- https://leetcode.com/problems/set-matrix-zeroes
- https://leetcode.com/problems/reorder-list
- https://leetcode.com/problems/cheapest-flights-within-k-stops
- https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
- https://leetcode.com/problems/3sum-closest
- https://leetcode.com/problems/rotate-list
- https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
- https://leetcode.com/problems/basic-calculator-ii
- https://leetcode.com/problems/combination-sum-iv
- https://leetcode.com/problems/insert-delete-getrandom-o1
- https://leetcode.com/problems/non-overlapping-intervals
- https://leetcode.com/problems/minimum-window-substring
- https://leetcode.com/problems/serialize-and-deserialize-binary-tree
- https://leetcode.com/problems/trapping-rain-water
- https://leetcode.com/problems/find-median-from-data-stream
- https://leetcode.com/problems/word-ladder
- https://leetcode.com/problems/basic-calculator
- https://leetcode.com/problems/maximum-profit-in-job-scheduling
- https://leetcode.com/problems/merge-k-sorted-lists
- https://leetcode.com/problems/largest-rectangle-in-histogram
- https://leetcode.com/problems/binary-tree-maximum-path-sum
- https://leetcode.com/problems/maximum-frequency-stack
- https://leetcode.com/problems/median-of-two-sorted-arrays
- https://leetcode.com/problems/longest-increasing-path-in-a-matrix
- https://leetcode.com/problems/longest-valid-parentheses
- https://leetcode.com/problems/word-search-ii
- https://leetcode.com/problems/bus-routes
- https://leetcode.com/problems/sliding-window-maximum
- https://leetcode.com/problems/palindrome-pairs
- https://leetcode.com/problems/reverse-nodes-in-k-group