Solving LEETCODE PATTERNS in python3.9.9
- contains-duplicate
- missing-number
- find-all-numbers-disappeared-in-an-array
- single-number
- climbing-stairs
- best-time-to-buy-and-sell-stock
- maximum-subarray
- range-sum-query-immutable
- counting-bits
- linked-list-cycle
- middle-of-the-linked-list
- palindrome-linked-list
- remove-linked-list-elements
- remove-duplicates-from-sorted-list
- reverse-linked-list
- merge-two-sorted-lists
- meeting-rooms
- binary-search
- find-smallest-letter-greater-than-target
- peak-index-in-a-mountain-array
- average-of-levels-in-binary-tree
- minimum-depth-of-binary-tree
- same-tree
- path-sum
- maximum-depth-of-binary-tree
- diameter-of-binary-tree
- merge-two-binary-trees
- lowest-common-ancestor-of-a-binary-search-tree
- subtree-of-another-tree
- invert-binary-tree
- two-sum
- squares-of-a-sorted-array
- backspace-string-compare
- index-pairs-of-a-string
- majority-element
- convert-1d-array-into-2d-array
- product-of-array-except-self
- find-the-duplicate-number
- find-all-duplicates-in-an-array
- set-matrix-zeroes
- spiral-matrix
- rotate-image
- word-search
- longest-consecutive-sequence
- letter-case-permutation
- subsets
- subsets-ii
- permutations
- permutations-ii
- combinations
- combination-sum
- combination-sum-ii
- combination-sum-iii
- generate-parentheses
- target-sum
- palindrome-partitioning
- letter-combinations-of-a-phone-number
- generalized-abbreviation
- house-robber
- house-robber-ii
- coin-change
- maximum-product-subarray
- longest-increasing-subsequence
- longest-palindromic-substring
- word-break
- combination-sum-iv
- decode-ways
- unique-paths
- jump-game
- palindromic-substrings
- number-of-longest-increasing-subsequence
- partition-equal-subset-sum
- partition-to-k-equal-sum-subsets
- best-time-to-buy-and-sell-stock-with-cooldown
- linked-list-cycle-ii
- add-two-numbers
- remove-nth-node-from-end-of-list
- sort-list
- reorder-list
- clone-graph
- pacific-atlantic-water-flow
- number-of-islands
- graph-valid-tree
- number-of-connected-components-in-an-undirected-graph
- reverse-linked-list-ii
- rotate-list
- swap-nodes-in-pairs
- odd-even-linked-list
- kth-smallest-element-in-a-sorted-matrix
- find-k-pairs-with-smallest-sums
- merge-intervals
- interval-list-intersections
- non-overlapping-intervals
- meeting-rooms-ii
- task-scheduler
- minimum-number-of-arrows-to-burst-balloons
- insert-interval
- find-minimum-in-rotated-sorted-array
- find-peak-element
- search-in-rotated-sorted-array
- search-in-rotated-sorted-array-ii
- search-a-2d-matrix
- search-a-2d-matrix-ii
- find-k-closest-elements
- minimum-size-subarray-sum
- fruit-into-baskets
- permutation-in-string
- longest-repeating-character-replacement
- longest-substring-without-repeating-characters
- kth-smallest-element-in-a-bst
- k-closest-points-to-origin
- top-k-frequent-elements
- sort-characters-by-frequency
- kth-largest-element-in-an-array
- reorganize-string
- course-schedule
- course-schedule-ii
- minimum-height-trees
- sequence-reconstruction
- binary-tree-level-order-traversal-ii
- binary-tree-level-order-traversal
- binary-tree-zigzag-level-order-traversal
- populating-next-right-pointers-in-each-node
- populating-next-right-pointers-in-each-node-ii
- binary-tree-right-side-view
- all-nodes-distance-k-in-binary-tree
- path-sum-ii
- path-sum-iii
- lowest-common-ancestor-of-a-binary-tree
- maximum-binary-tree
- maximum-width-of-binary-tree
- construct-binary-tree-from-preorder-and-inorder-traversal
- validate-binary-search-tree
- implement-trie-prefix-tree
- 3sum
- 3sum-closest
- subarray-product-less-than-k
- sort-colors
- container-with-most-water
- longest-word-in-dictionary
- maximum-xor-of-two-numbers-in-an-array
- first-missing-positive
- sudoku-solver
- n-queens
- reverse-nodes-in-k-group
- merge-k-sorted-lists
- smallest-range-covering-elements-from-k-lists
- employee-free-time
- count-of-range-sum
- sliding-window-maximum
- minimum-number-of-k-consecutive-bit-flips
- count-unique-characters-of-all-substrings-of-a-given-string
- minimum-window-substring
- substring-with-concatenation-of-all-words
- rearrange-string-k-distance-apart
- course-schedule-iii
- maximum-frequency-stack
- alien-dictionary
- binary-tree-maximum-path-sum
- serialize-and-deserialize-binary-tree
- word-search-ii
- find-median-from-data-stream
- sliding-window-median
- trapping-rain-water
- concatenated-words
- prefix-and-suffix-search
- palindrome-pairs
- design-search-autocomplete-system
- word-squares
- sort-items-by-groups-respecting-dependencies
- median-of-two-sorted-arrays