leetcode-python
Leetcode Python Solution and Explanation. Also a Guide to Prepare for Software Engineer Interview.
파일 탐색기
최종 버전 다운로드 (.zip)- bellman–ford.py
- binary-search-tree.py
- bst-in-order.py
- dijkstra.py
- heap-sort.py
- insertion-sort.py
- knapsack.py
- merge-sort-in-place.py
- merge-sort.py
- min-heap.py
- quick-sort.py
- radix-sort.py
- trie.py
- 01-matrix.py
- 3sum-closest.py
- 3sum.py
- 4sum.py
- accounts-merge.py
- add-binary.py
- add-digits.py
- add-strings.py
- add-two-numbers-ii.py
- add-two-numbers.py
- alien-dictionary.py
- all-nodes-distance-k-in-binary-tree.py
- amount-of-new-area-painted-each-day.py
- analyze-user-website-visit-pattern.py
- backspace-string-compare.py
- balance-a-binary-search-tree.py
- balanced-binary-tree.py
- basic-calculator-ii.py
- best-time-to-buy-an-stock.py
- best-time-to-buy-and-sell-stock-iii.py
- best-time-to-buy-and-sell-stock-with-cooldown.py
- best-time-to-buy-and-sell-stock.py
- big-countries.sql
- binary-search-tree-iterator.py
- binary-search.py
- binary-subarrays-with-sum.py
- binary-tree-inorder-traversal.py
- binary-tree-level-order-traversal-ii.py
- binary-tree-level-order-traversal.py
- binary-tree-longest-consecutive-sequence.py
- binary-tree-maximum-path-sum.py
- binary-tree-paths.py
- binary-tree-pruning.py
- binary-tree-right-side-view.py
- binary-tree-vertical-order-traversal.py
- binary-watch.py
- buildings-with-an-ocean-view.py
- burst-balloons.py
- campus-bikes-ii.py
- candy.py
- capacity-to-ship-packages-within-d-days.py
- cheapest-flights-within-k-stops.py
- climbing-stairs.py
- clone-graph.py
- closest-binary-search-tree-value.py
- coin-change.py
- coloring-a-border.py
- combination-sum-ii.py
- combination-sum-iii.py
- combination-sum-iv.py
- combination-sum.py
- combinations.py
- combine-two-tables.sql
- compare-version-numbers.py
- connecting-cities-with-minimum-cost.py
- consecutive-numbers-sum.py
- construct-binary-tree-from-inorder-and-postorder-traversal.py
- construct-binary-tree-from-preorder-and-inorder-traversal.py
- container-with-most-water.py
- contains-duplicate-ii.py
- contains-duplicate-iii.py
- contains-duplicate.py
- continuous-subarray-sum.py
- convert-binary-search-tree-to-sorted-doubly-linked-list.py
- convert-sorted-array-to-binary-search-tree.py
- convert-sorted-list-to-binary-search-tree.py
- copy-list-with-random-pointer.py
- count-all-valid-pickup-and-delivery-opti.py
- count-binary-substrings.py
- count-complete-tree-nodes.py
- count-number-of-nice-subarrays.py
- count-unique-characters-of-all-substrings-of-a-given-string.py
- course-schedule-ii.py
- course-schedule.py
- custom-sort-string.py
- cutting-ribbons.py
- data-stream-as-disjoint-intervals.py
- decode-string.py
- decode-ways.py
- delete-and-earn.py
- delete-duplicate-folders-in-system.py
- delete-node-in-a-bst.py
- delete-operation-for-two-strings.py
- design-add-and-search-words-data-structure.py
- design-in-memory-file-system.py
- design-linked-list.py
- design-tic-tac-toe.py
- diagonal-traverse.py
- diameter-of-binary-tree.py
- different-ways-to-add-parentheses.py
- distinct-subsequences.py
- distribute-coins-in-binary-tree.py
- domino-and-tromino-tiling.py
- dot-product-of-two-sparse-vectors.py
- dungeon-game.py
- edit-distance.py
- egions-cut-by-slashes.py
- evaluate-division.py
- evaluate-reverse-polish-notation.py
- exclusive-time-of-functions.py
- expression-add-operators.py
- filling-bookcase-shelves.py
- find-all-possible-recipes-from-given-supplies.py
- find-and-replace-in-string.py
- find-distance-in-a-binary-tree.py
- find-duplicate-subtrees.py
- find-eventual-safe-states.py
- find-first-and-last-position-of-element-in-sorted-array.py
- find-k-closest-elements.py
- find-k-pairs-with-smallest-sums.py
- find-leaves-of-binary-tree.py
- find-median-from-data-stream.py
- find-minimum-in-rotated-sorted-array-ii.py
- find-minimum-in-rotated-sorted-array.py
- find-mode-in-binary-search-tree.py
- find-original-array-from-doubled-array,py
- find-peak-element.py
- find-the-duplicate-number.py
- first-bad-version.py
- first-missing-positive.py
- first-unique-character-in-a-string.py
- fizz-buzz.py
- flatten-binary-tree-to-linked-list.py
- flip-binary-tree-to-match-preorder-traversal.py
- flip-string-to-monotone-increasing.py
- flood-fill.py
- friend-circles.py
- fruit-into-baskets.py
- game-of-life.py
- generate-parentheses.py
- graph-valid-tree.py
- greatest-sum-divisible-by-three.py
- group-anagrams.py
- group-shifted-strings.py
- guess-number-higher-or-lower-ii.py
- guess-number-higher-or-lower.py
- guess-the-word.py
- h-index-ii.py
- h-index.py
- hamming-distance.py
- house-robber-ii.py
- house-robber-iii.py
- house-robber.py
- implement-trie-prefix-tree.py
- increasing-triplet-subsequence.py
- inorder-successor-in-bst-ii.py
- inorder-successor-in-bst.py
- insert-interval.py
- insert-into-a-binary-search-tree.py
- insert-into-a-sorted-circular-linked-list.py
- insertion-sort-list.py
- integer-to-english-words.py
- interleaving-string.py
- intersection-of-two-arrays-ii.py
- intersection-of-two-arrays.py
- invert-binary-tree.py
- is-graph-bipartite.py
- is-subsequence.py
- isomorphic-strings.py
- jewels-and-stones.py
- jump-game.py
- k-closest-points-to-origin.py
- k-empty-slots.py
- keys-and-rooms.py
- knight-dialer.py
- knight-probability-in-chessboard.py
- koko-eating-bananas.py
- kth-largest-element-in-an-array.py
- kth-smallest-element-in-a-bst.py
- kth-smallest-element-in-a-sorted-matrix.py
- largest-1-bordered-square.py
- largest-bst-subtree.py
- largest-sum-of-averages.py
- last-stone-weight-ii.py
- last-stone-weight.py
- least-number-of-unique-integers-after-k-removals.py
- letter-case-permutation.py
- letter-combinations-of-a-phone-number.py
- license-key-formatting.py
- linked-list-cycle-ii.py
- linked-list-cycle.py
- linked-list-random-node.py
- logger-rate-limiter.py
- longest-common-prefix.py
- longest-common-subsequence.py
- longest-consecutive-sequence.py
- longest-increasing-path-in-a-matrix.py
- longest-increasing-subsequence.py
- longest-palindromic-subsequence.py
- longest-palindromic-substring.py
- longest-repeating-character-replacement.py
- longest-string-chain.py
- longest-substring-with-at-least-k-repeating-characters.py
- longest-substring-without-repeating-characters.py
- longest-univalue-path.py
- lowest-common-ancestor-of-a-binary-search-tree.py
- lowest-common-ancestor-of-a-binary-search.py
- lowest-common-ancestor-of-a-binary-tree-ii.py
- lowest-common-ancestor-of-a-binary-tree-iii.py
- lowest-common-ancestor-of-a-binary-tree-iv.py
- lowest-common-ancestor-of-a-binary-tree.py
- lowest-common-ancestor-of-deepest-leaves.py
- lru-cache.py
- majority-element-ii.py
- majority-element.py
- making-a-large-island.py
- max-area-of-island.py
- max-consecutive-ones-iii.py
- max-stack.py
- max-sum-of-rectangle-no-larger-than-k.py
- maximal-square.py
- maximum-average-subtree.py
- maximum-compatibility-score-sum.py
- maximum-depth-of-binary-tree.py
- maximum-gap.py
- maximum-length-of-repeated-subarray.py
- maximum-number-of-events-that-can-be-attended.py
- maximum-number-of-points-with-cost.py
- maximum-number-of-visible-points.py
- maximum-product-of-three-numbers.py
- maximum-product-subarray.py
- maximum-subarray-sum-with-one-deletion.py
- maximum-subarray.py
- maximum-swap.py
- maximum-units-on-a-truck.py
- median-of-two-sorted-arrays.py
- meeting-rooms-ii.py
- meeting-rooms.py
- merge-intervals.py
- merge-k-sorted-lists.py
- merge-sorted-array.py
- merge-two-sorted-lists.py
- min-cost-climbing-stairs.py
- min-stack.py
- minimize-malware-spread.py
- minimum-absolute-difference-in-bst.py
- minimum-ascii-delete-sum-for-two-strings.py
- minimum-cost-to-connect-sticks.py
- minimum-cost-to-hire-k-workers.py
- minimum-cost-to-make-at-least-one-valid-path-in-a-grid.py
- minimum-cost-to-reach-city-with-discounts.py
- minimum-depth-of-binary-tree.py
- minimum-difficulty-of-a-job-schedule.py
- minimum-falling-path-sum-ii.py
- minimum-knight-moves.py
- minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix.py
- minimum-path-sum.py
- minimum-score-triangulation-of-polygon.py
- minimum-size-subarray-sum.py
- minimum-swaps-to-group-all-1s-together.py
- minimum-swaps-to-make-sequences-increasing.py
- minimum-time-difference.py
- minimum-window-substring.py
- minimum-xor-sum-of-two-arrays.py
- missing-number.py
- most-frequent-subtree-sum.py
- most-stones-removed-with-same-row-or-column.py
- move-zeroes.py
- moving-average-from-data-stream.py
- my-calendar-ii.py
- n-ary-tree-level-order-traversal.py
- n-ary-tree-postorder-traversal.py
- n-ary-tree-preorder-traversal.py
- nested-list-weight-sum.py
- network-delay-time.py
- next-closest-time.py
- next-permutation.py
- number-complement.py
- number-of-connected-components-in-an-undirected-graph.py
- number-of-islands-ii.py
- number-of-islands.py
- number-of-longest-increasing-subsequence.py
- number-of-matching-subsequences.py
- number-of-provinces.py
- number-of-recent-calls.py
- number-of-squareful-arrays.py
- number-of-substrings-containing-all-thre.py
- number-of-ways-to-arrive-at-destination.py
- odd-even-jump.py
- ones-and-zeroes.py
- open-the-lock.py
- out-of-boundary-paths.py
- pacific-atlantic-water-flow.py
- pairs-of-songs-with-total-durations-divisible-by-60.py
- palindrome-number.py
- palindrome-pairs.py
- palindrome-partitioning-iii.py
- palindrome-partitioning.py
- palindromic-substrings.py
- partition-array-for-maximum-sum.py
- partition-labels.py
- partition-to-k-equal-sum-subsets.py
- path-sum-ii.py
- path-sum-iii.py
- path-sum.py
- path-with-maximum-probability.py
- peak-index-in-a-mountain-array.py
- perfect-squares.py
- permutation-in-string.py
- permutation-sequence.py
- permutations-ii.py
- permutations.py
- populating-next-right-pointers-in-each-node-ii.py
- populating-next-right-pointers-in-each-node.py
- powx-n.py
- product-of-array-except-self.py
- profitable-schemes.py
- queue-reconstruction-by-height.py
- random-pick-with-weight.py
- range-addition.py
- range-sum-of-bst.py
- range-sum-query-immutable.py
- range-sum-query-mutable.py
- rearrange-string-k-distance-apart.py
- reconstruct-itinerary.py
- recover-binary-search-tree.py
- redundant-connection.py
- remove-all-adjacent-duplicates-in-string.py
- remove-all-ones-with-row-and-column-flips.py
- remove-duplicates-from-sorted-array-ii.py
- remove-duplicates-from-sorted-array.py
- remove-duplicates-from-sorted-list.py
- remove-element.py
- remove-invalid-parentheses.py
- remove-linked-list-elements.py
- remove-nth-node-from-end-of-list.py
- reorder-list.py
- repeated-string-match.py
- replace-the-substring-for-balanced-string.py
- restore-ip-addresses.py
- reverse-integer.py
- reverse-linked-list.py
- reverse-string.py
- reverse-vowels-of-a-string.py
- reverse-words-in-a-string.py
- robot-bounded-in-circle.py
- roman-to-integer.py
- rotate-array.py
- rotate-image.py
- russian-doll-envelopes.py
- same-tree.py
- satisfiability-of-equality-equations.py
- score-of-parentheses.py
- search-a-2d-matrix.py
- search-in-a-binary-search-tree.py
- search-in-rotated-sorted-array-ii.py
- search-in-rotated-sorted-array.py
- search-insert-position.py
- search-suggestions-system.py
- second-highest-salary.sql
- sell-diminishing-valued-colored-balls.py
- serialize-and-deserialize-binary-tree.py
- serialize-and-deserialize-bst.py
- set-matrix-zeroes.py
- shortest-bridge.py
- shortest-common-supersequence.py
- shortest-distance-from-all-buildings.py
- shortest-path-in-a-grid-with-obstacles-elimination.py
- shortest-path-in-binary-matrix.py
- shortest-path-to-get-food.py
- shuffle-an-array.py
- simplify-path.py
- single-threaded-cpu.py
- sliding-window-maximum.py
- snapshot-array.py
- sort-colors.py
- sort-list.py
- spiral-matrix.py
- split-array-into-fibonacci-sequence.py
- split-array-largest-sum.py
- sqrtx.py
- squares-of-a-sorted-array.py
- step-by-step-directions-from-a-binary-tree-node-to-another.py
- stock-price-fluctuation.py
- stone-game-ii.py
- student-attendance-record-ii.py
- subarray-sum-equals-k.py
- subarrays-with-k-different-integers.py
- subdomain-visit-count.py
- subsets-ii.py
- subsets.py
- substring-with-concatenation-of-all-words.py
- subtree-of-another-tree.py
- sum-of-subarray-minimums.py
- sum-root-to-leaf-numbers.py
- summary-ranges.py
- super-ugly-number.py
- swap-adjacent-in-lr-string.py
- swap-nodes-in-pairs.py
- swim-in-rising-water.py
- symmetric-tree.py
- tallest-billboard.py
- target-sum.py
- task-scheduler.py
- text-justification.py
- the-kth-factor-of-n.py
- the-maze-ii.py
- time-based-key-value-store.py
- to-lower-case.py
- toeplitz-matrix.py
- top-k-frequent-elements.py
- trapping-rain-water-ii.py
- trapping-rain-water.py
- trim-a-binary-search-tree.py
- two-out-of-three.py
- two-sum-ii-input-array-is-sorted.py
- two-sum.py
- ugly-number-ii.py
- ugly-number.py
- umber-of-islands-ii.py
- unique-binary-search-trees-ii,py
- unique-binary-search-trees.py
- unique-email-addres.py
- unique-paths.py
- univalued-binary-tree.py
- valid-anagram.py
- valid-number.py
- valid-palindrome-ii.py
- valid-palindrome.py
- valid-parentheses.py
- valid-word-abbreviation.py
- validate-binary-search-tree.py
- verify-preorder-serialization-of-a-binary-tree.py
- vertical-order-traversal-of-a-binary-tree.py
- wiggle-subsequence.py
- word-break.py
- word-ladder-ii.py
- word-ladder.py
- word-search-ii.py
- word-search.py
- 3sum-closest.py
- 3sum-smaller.py
- 3sum.py
- 4sum.py
- add-two-numbers.py
- alien-dictionary.py
- balanced-binary-tree.py
- best-time-to-buy-and-sell-stock-with-cooldown.py
- best-time-to-buy-and-sell-stock.py
- binary-search.py
- binary-tree-level-order-traversal.py
- binary-tree-maximum-path-sum.py
- binary-tree-right-side-view.py
- burst-balloons.py
- car-fleet.py
- cheapest-flights-within-k-stops.py
- climbing-stairs.py
- clone-graph.py
- coin-change-ii.py
- coin-change.py
- combination-sum-ii.py
- combination-sum.py
- construct-binary-tree-from-preorder-and-inorder-traversal.py
- container-with-most-water.py
- contains-duplicate.py
- copy-list-with-random-pointer.py
- count-good-nodes-in-binary-tree.py
- counting-bits.py
- course-schedule-ii.py
- course-schedule.py
- daily-temperatures.py
- decode-ways.py
- design-add-and-search-words-data-structure.py
- design-twitter.py
- detect-squares.py
- diameter-of-binary-tree.py
- distinct-subsequences.py
- edit-distance.py
- encode-and-decode-strings.py
- evaluate-reverse-polish-notation.py
- find-median-from-data-stream.py
- find-minimum-in-rotated-sorted-array.py
- find-the-duplicate-number.py
- gas-station.py
- generate-parentheses.py
- graph-valid-tree.py
- group-anagrams.py
- hand-of-straights.py
- happy-number.py
- house-robber-ii.py
- house-robber.py
- implement-trie-prefix-tree.py
- insert-interval.py
- interleaving-string.py
- invert-binary-tree.py
- jump-game-ii.py
- jump-game.py
- k-closest-points-to-origin.py
- koko-eating-bananas.py
- kth-largest-element-in-a-stream.py
- kth-smallest-element-in-a-bst.py
- largest-rectangle-in-histogram.py
- last-stone-weight.py
- letter-combinations-of-a-phone-number.py
- linked-list-cycle.py
- longest-common-subsequence.py
- longest-consecutive-sequence.py
- longest-increasing-path-in-a-matrix.py
- longest-palindromic-substring.py
- longest-repeating-character-replacement.py
- longest-substring-without-repeating-char.py
- lowest-common-ancestor-of-a-binary-search-tree.py
- lru-cache.py
- max-area-of-island.py
- maximum-depth-of-binary-tree.py
- maximum-product-subarray.py
- maximum-subarray.py
- median-of-two-sorted-arrays.py
- meeting-rooms-ii.py
- meeting-rooms.py
- merge-intervals.py
- merge-triplets-to-form-target-triplet.py
- merge-two-sorted-lists.py
- min-cost-climbing-stairs.py
- min-cost-to-connect-all-points.py
- min-stack.py
- minimum-interval-to-include-each-query.py
- minimum-window-substring.py
- missing-number.py
- multiply-strings.py
- n-queens.py
- network-delay-time.py
- non-overlapping-intervals.py
- number-of-1-bits.py
- number-of-connected-components-in-an-undirected-graph.py
- number-of-islands.py
- pacific-atlantic-water-flow.py
- palindrome-partitioning.py
- palindromic-substrings.py
- partition-equal-subset-sum.py
- partition-labels.py
- permutation-in-string.py
- permutations.py
- plus-one.py
- powx-n.py
- product-of-array-except-self.py
- reconstruct-itinerary.py
- redundant-connection.py
- regular-expression-matching.py
- remove-nth-node-from-end-of-list.py
- reorder-list.py
- reverse-bits.py
- reverse-integer.py
- reverse-linked-list.py
- rotate-image.py
- rotting-oranges.py
- same-tree.py
- search-a-2d-matrix.py
- serialize-and-deserialize-binary-tree.py
- set-matrix-zeroes.py
- single-number.py
- sliding-window-maximum.py
- spiral-matrix.py
- subsets-ii.py
- subsets.py
- substring-with-concatenation-of-all-words.py
- subtree-of-another-tree.py
- sum-of-two-integers.py
- surrounded-regions.py
- swim-in-rising-water.py
- target-sum.py
- task-scheduler.py
- time-based-key-value-store.py
- top-k-frequent-elements.py
- trapping-rain-water.py
- two-sum-ii-input-array-is-sorted.py
- two-sum.py
- unique-paths.py
- valid-anagram.py
- valid-palindrome.py
- valid-parentheses.py
- valid-parenthesis-string.py
- valid-sudoku.py
- validate-binary-search-tree.py
- walls-and-gates.py
- word-break.py
- word-ladder.py
- word-search-ii.py
- word-search.py
- .gitignore
- README.md
// repository documentation
Was this content helpful?
(0 ratings)
