Skip to content

Commit 3856e22

Browse files
author
wuduhren
committed
20220530
1 parent c6ba939 commit 3856e22

File tree

470 files changed

+232
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+232
-0
lines changed

.gitignore

100644100755
File mode changed.

README.md

100644100755
File mode changed.

common/bellman–ford.py

100644100755
File mode changed.

common/binary-search-tree.py

100644100755
File mode changed.

common/bst-in-order.py

100644100755
File mode changed.

common/dijkstra.py

100644100755
File mode changed.

common/heap-sort.py

100644100755
File mode changed.

common/insertion-sort.py

100644100755
File mode changed.

common/knapsack.py

100644100755
File mode changed.

common/merge-sort-in-place.py

100644100755
File mode changed.

common/merge-sort.py

100644100755
File mode changed.

common/min-heap.py

100644100755
File mode changed.

common/quick-sort.py

100644100755
File mode changed.

common/radix-sort.py

100644100755
File mode changed.

common/trie.py

100644100755
File mode changed.

problems/python/01-matrix.py

100644100755
File mode changed.

problems/python/3sum-closest.py

100644100755
File mode changed.

problems/python/3sum.py

100644100755
File mode changed.

problems/python/4sum.py

100644100755
File mode changed.

problems/python/accounts-merge.py

100644100755
File mode changed.

problems/python/add-binary.py

100644100755
File mode changed.

problems/python/add-digits.py

100644100755
File mode changed.

problems/python/add-strings.py

100644100755
File mode changed.

problems/python/add-two-numbers-ii.py

100644100755
File mode changed.

problems/python/add-two-numbers.py

100644100755
File mode changed.

problems/python/alien-dictionary.py

100644100755
File mode changed.

problems/python/all-nodes-distance-k-in-binary-tree.py

100644100755
File mode changed.

problems/python/amount-of-new-area-painted-each-day.py

100644100755
File mode changed.

problems/python/analyze-user-website-visit-pattern.py

100644100755
File mode changed.

problems/python/backspace-string-compare.py

100644100755
File mode changed.

problems/python/balance-a-binary-search-tree.py

100644100755
File mode changed.

problems/python/balanced-binary-tree.py

100644100755
File mode changed.

problems/python/basic-calculator-ii.py

100644100755
File mode changed.

problems/python/best-time-to-buy-an-stock.py

100644100755
File mode changed.

problems/python/best-time-to-buy-and-sell-stock-iii.py

100644100755
File mode changed.

problems/python/best-time-to-buy-and-sell-stock-with-cooldown.py

100644100755
File mode changed.

problems/python/best-time-to-buy-and-sell-stock.py

100644100755
File mode changed.

problems/python/big-countries.sql

100644100755
File mode changed.

problems/python/binary-search-tree-iterator.py

100644100755
File mode changed.

problems/python/binary-search.py

100644100755
File mode changed.

problems/python/binary-subarrays-with-sum.py

100644100755
File mode changed.

problems/python/binary-tree-inorder-traversal.py

100644100755
File mode changed.

problems/python/binary-tree-level-order-traversal-ii.py

100644100755
File mode changed.

problems/python/binary-tree-level-order-traversal.py

100644100755
File mode changed.

problems/python/binary-tree-longest-consecutive-sequence.py

100644100755
File mode changed.

problems/python/binary-tree-maximum-path-sum.py

100644100755
File mode changed.

problems/python/binary-tree-paths.py

100644100755
File mode changed.

problems/python/binary-tree-pruning.py

100644100755
File mode changed.

problems/python/binary-tree-right-side-view.py

100644100755
File mode changed.

problems/python/binary-tree-vertical-order-traversal.py

100644100755
File mode changed.

problems/python/binary-watch.py

100644100755
File mode changed.

problems/python/buildings-with-an-ocean-view.py

100644100755
File mode changed.

problems/python/burst-balloons.py

100644100755
File mode changed.

problems/python/campus-bikes-ii.py

100644100755
File mode changed.

problems/python/candy.py

100644100755
File mode changed.

problems/python/capacity-to-ship-packages-within-d-days.py

100644100755
File mode changed.

problems/python/cheapest-flights-within-k-stops.py

100644100755
File mode changed.

problems/python/climbing-stairs.py

100644100755
File mode changed.

problems/python/clone-graph.py

100644100755
File mode changed.

problems/python/closest-binary-search-tree-value.py

100644100755
File mode changed.

problems/python/coin-change.py

100644100755
File mode changed.

problems/python/coloring-a-border.py

100644100755
File mode changed.

problems/python/combination-sum-ii.py

100644100755
File mode changed.

problems/python/combination-sum-iii.py

100644100755
File mode changed.

problems/python/combination-sum-iv.py

100644100755
File mode changed.

problems/python/combination-sum.py

100644100755
File mode changed.

problems/python/combinations.py

100644100755
File mode changed.

problems/python/combine-two-tables.sql

100644100755
File mode changed.

problems/python/compare-version-numbers.py

100644100755
File mode changed.

problems/python/connecting-cities-with-minimum-cost.py

100644100755
File mode changed.

problems/python/consecutive-numbers-sum.py

100644100755
File mode changed.

problems/python/construct-binary-tree-from-inorder-and-postorder-traversal.py

100644100755
File mode changed.

problems/python/construct-binary-tree-from-preorder-and-inorder-traversal.py

100644100755
File mode changed.

problems/python/container-with-most-water.py

100644100755
File mode changed.

problems/python/contains-duplicate-ii.py

100644100755
File mode changed.

problems/python/contains-duplicate-iii.py

100644100755
File mode changed.

problems/python/contains-duplicate.py

100644100755
File mode changed.

problems/python/continuous-subarray-sum.py

100644100755
File mode changed.

problems/python/convert-binary-search-tree-to-sorted-doubly-linked-list.py

100644100755
File mode changed.

problems/python/convert-sorted-array-to-binary-search-tree.py

100644100755
File mode changed.

problems/python/convert-sorted-list-to-binary-search-tree.py

100644100755
File mode changed.

problems/python/copy-list-with-random-pointer.py

100644100755
File mode changed.

problems/python/count-all-valid-pickup-and-delivery-opti.py

100644100755
File mode changed.

problems/python/count-binary-substrings.py

100644100755
File mode changed.

problems/python/count-complete-tree-nodes.py

100644100755
File mode changed.

problems/python/count-number-of-nice-subarrays.py

100644100755
File mode changed.

problems/python/count-unique-characters-of-all-substrings-of-a-given-string.py

100644100755
File mode changed.

problems/python/course-schedule-ii.py

100644100755
File mode changed.

problems/python/course-schedule.py

100644100755
File mode changed.

problems/python/custom-sort-string.py

100644100755
File mode changed.

problems/python/cutting-ribbons.py

100644100755
File mode changed.

problems/python/data-stream-as-disjoint-intervals.py

100644100755
File mode changed.

problems/python/decode-string.py

100644100755
File mode changed.

problems/python/decode-ways.py

100644100755
File mode changed.

problems/python/delete-and-earn.py

100644100755
File mode changed.

problems/python/delete-duplicate-folders-in-system.py

100644100755
File mode changed.

problems/python/delete-node-in-a-bst.py

100644100755
File mode changed.

problems/python/delete-operation-for-two-strings.py

100644100755
File mode changed.

problems/python/design-add-and-search-words-data-structure.py

100644100755
File mode changed.

problems/python/design-in-memory-file-system.py

100644100755
File mode changed.

problems/python/design-linked-list.py

100644100755
File mode changed.

problems/python/design-tic-tac-toe.py

100644100755
File mode changed.

problems/python/diagonal-traverse.py

100644100755
File mode changed.

problems/python/diameter-of-binary-tree.py

100644100755
File mode changed.

problems/python/different-ways-to-add-parentheses.py

100644100755
File mode changed.

problems/python/distinct-subsequences.py

100644100755
File mode changed.

problems/python/distribute-coins-in-binary-tree.py

100644100755
File mode changed.

problems/python/domino-and-tromino-tiling.py

100644100755
File mode changed.

problems/python/dot-product-of-two-sparse-vectors.py

100644100755
File mode changed.

problems/python/dungeon-game.py

100644100755
File mode changed.

problems/python/edit-distance.py

100644100755
File mode changed.

problems/python/egions-cut-by-slashes.py

100644100755
File mode changed.

problems/python/evaluate-division.py

100644100755
File mode changed.

problems/python/evaluate-reverse-polish-notation.py

100644100755
File mode changed.

problems/python/exclusive-time-of-functions.py

100644100755
File mode changed.

problems/python/expression-add-operators.py

100644100755
File mode changed.

problems/python/filling-bookcase-shelves.py

100644100755
File mode changed.

problems/python/find-all-possible-recipes-from-given-supplies.py

100644100755
File mode changed.

problems/python/find-and-replace-in-string.py

100644100755
File mode changed.

problems/python/find-distance-in-a-binary-tree.py

100644100755
File mode changed.

problems/python/find-duplicate-subtrees.py

100644100755
File mode changed.

problems/python/find-eventual-safe-states.py

100644100755
File mode changed.

problems/python/find-first-and-last-position-of-element-in-sorted-array.py

100644100755
File mode changed.

problems/python/find-k-closest-elements.py

100644100755
File mode changed.

problems/python/find-k-pairs-with-smallest-sums.py

100644100755
File mode changed.

problems/python/find-leaves-of-binary-tree.py

100644100755
File mode changed.

problems/python/find-median-from-data-stream.py

100644100755
File mode changed.

problems/python/find-minimum-in-rotated-sorted-array-ii.py

100644100755
File mode changed.

problems/python/find-minimum-in-rotated-sorted-array.py

100644100755
File mode changed.

problems/python/find-mode-in-binary-search-tree.py

100644100755
File mode changed.

problems/python/find-original-array-from-doubled-array,py

100644100755
File mode changed.

problems/python/find-peak-element.py

100644100755
File mode changed.

problems/python/find-the-duplicate-number.py

100644100755
File mode changed.

problems/python/first-bad-version.py

100644100755
File mode changed.

problems/python/first-missing-positive.py

100644100755
File mode changed.

problems/python/first-unique-character-in-a-string.py

100644100755
File mode changed.

problems/python/fizz-buzz.py

100644100755
File mode changed.

problems/python/flatten-binary-tree-to-linked-list.py

100644100755
File mode changed.

problems/python/flip-binary-tree-to-match-preorder-traversal.py

100644100755
File mode changed.

problems/python/flip-string-to-monotone-increasing.py

100644100755
File mode changed.

problems/python/flood-fill.py

100644100755
File mode changed.

problems/python/friend-circles.py

100644100755
File mode changed.

problems/python/fruit-into-baskets.py

100644100755
File mode changed.

problems/python/game-of-life.py

100644100755
File mode changed.

problems/python/generate-parentheses.py

100644100755
File mode changed.

problems/python/graph-valid-tree.py

100644100755
File mode changed.

problems/python/greatest-sum-divisible-by-three.py

100644100755
File mode changed.

problems/python/group-anagrams.py

100644100755
File mode changed.

problems/python/group-shifted-strings.py

100644100755
File mode changed.

problems/python/guess-number-higher-or-lower-ii.py

100644100755
File mode changed.

problems/python/guess-number-higher-or-lower.py

100644100755
File mode changed.

problems/python/guess-the-word.py

100644100755
File mode changed.

problems/python/h-index-ii.py

100644100755
File mode changed.

problems/python/h-index.py

100644100755
File mode changed.

problems/python/hamming-distance.py

100644100755
File mode changed.

problems/python/house-robber-ii.py

100644100755
File mode changed.

problems/python/house-robber-iii.py

100644100755
File mode changed.

problems/python/house-robber.py

100644100755
File mode changed.

problems/python/implement-trie-prefix-tree.py

100644100755
File mode changed.

problems/python/increasing-triplet-subsequence.py

100644100755
File mode changed.

problems/python/inorder-successor-in-bst-ii.py

100644100755
File mode changed.

problems/python/inorder-successor-in-bst.py

100644100755
File mode changed.

problems/python/insert-interval.py

100644100755
File mode changed.

problems/python/insert-into-a-binary-search-tree.py

100644100755
File mode changed.

problems/python/insert-into-a-sorted-circular-linked-list.py

100644100755
File mode changed.

problems/python/insertion-sort-list.py

100644100755
File mode changed.

problems/python/integer-to-english-words.py

100644100755
File mode changed.

problems/python/interleaving-string.py

100644100755
File mode changed.

problems/python/intersection-of-two-arrays-ii.py

100644100755
File mode changed.

problems/python/intersection-of-two-arrays.py

100644100755
File mode changed.

problems/python/invert-binary-tree.py

100644100755
File mode changed.

problems/python/is-graph-bipartite.py

100644100755
File mode changed.

problems/python/is-subsequence.py

100644100755
File mode changed.

problems/python/isomorphic-strings.py

100644100755
File mode changed.

problems/python/jewels-and-stones.py

100644100755
File mode changed.

problems/python/jump-game.py

100644100755
File mode changed.

problems/python/k-closest-points-to-origin.py

100644100755
File mode changed.

problems/python/k-empty-slots.py

100644100755
File mode changed.

problems/python/keys-and-rooms.py

100644100755
File mode changed.

problems/python/knight-dialer.py

100644100755
File mode changed.

problems/python/knight-probability-in-chessboard.py

100644100755
File mode changed.

problems/python/koko-eating-bananas.py

100644100755
File mode changed.

problems/python/kth-largest-element-in-an-array.py

100644100755
File mode changed.

problems/python/kth-smallest-element-in-a-bst.py

100644100755
File mode changed.

problems/python/kth-smallest-element-in-a-sorted-matrix.py

100644100755
File mode changed.

problems/python/largest-1-bordered-square.py

100644100755
File mode changed.

problems/python/largest-bst-subtree.py

100644100755
File mode changed.

problems/python/largest-sum-of-averages.py

100644100755
File mode changed.

problems/python/last-stone-weight-ii.py

100644100755
File mode changed.

problems/python/last-stone-weight.py

100644100755
File mode changed.

problems/python/least-number-of-unique-integers-after-k-removals.py

100644100755
File mode changed.

problems/python/letter-case-permutation.py

100644100755
File mode changed.

problems/python/letter-combinations-of-a-phone-number.py

100644100755
File mode changed.

problems/python/license-key-formatting.py

100644100755
File mode changed.

problems/python/linked-list-cycle-ii.py

100644100755
File mode changed.

problems/python/linked-list-cycle.py

100644100755
File mode changed.

problems/python/linked-list-random-node.py

100644100755
File mode changed.

problems/python/logger-rate-limiter.py

100644100755
File mode changed.

problems/python/longest-common-prefix.py

100644100755
File mode changed.

problems/python/longest-common-subsequence.py

100644100755
File mode changed.

problems/python/longest-consecutive-sequence.py

100644100755
File mode changed.

problems/python/longest-increasing-path-in-a-matrix.py

100644100755
File mode changed.

problems/python/longest-increasing-subsequence.py

100644100755
File mode changed.

problems/python/longest-palindromic-subsequence.py

100644100755
File mode changed.

problems/python/longest-palindromic-substring.py

100644100755
File mode changed.

problems/python/longest-repeating-character-replacement.py

100644100755
File mode changed.

problems/python/longest-string-chain.py

100644100755
File mode changed.

problems/python/longest-substring-with-at-least-k-repeating-characters.py

100644100755
File mode changed.

problems/python/longest-substring-without-repeating-characters.py

100644100755
File mode changed.

problems/python/longest-univalue-path.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-a-binary-search-tree.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-a-binary-search.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-a-binary-tree-ii.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-a-binary-tree-iii.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-a-binary-tree-iv.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-a-binary-tree.py

100644100755
File mode changed.

problems/python/lowest-common-ancestor-of-deepest-leaves.py

100644100755
File mode changed.

problems/python/lru-cache.py

100644100755
File mode changed.

problems/python/majority-element-ii.py

100644100755
File mode changed.

problems/python/majority-element.py

100644100755
File mode changed.

problems/python/making-a-large-island.py

100644100755
File mode changed.

problems/python/max-area-of-island.py

100644100755
File mode changed.

problems/python/max-consecutive-ones-iii.py

100644100755
File mode changed.

problems/python/max-stack.py

100644100755
File mode changed.

problems/python/max-sum-of-rectangle-no-larger-than-k.py

100644100755
File mode changed.

problems/python/maximal-square.py

100644100755
File mode changed.

problems/python/maximum-average-subtree.py

100644100755
File mode changed.

problems/python/maximum-compatibility-score-sum.py

100644100755
File mode changed.

problems/python/maximum-depth-of-binary-tree.py

100644100755
File mode changed.

problems/python/maximum-gap.py

100644100755
File mode changed.

problems/python/maximum-length-of-repeated-subarray.py

100644100755
File mode changed.

problems/python/maximum-number-of-events-that-can-be-attended.py

100644100755
File mode changed.

problems/python/maximum-number-of-points-with-cost.py

100644100755
File mode changed.

problems/python/maximum-number-of-visible-points.py

100644100755
File mode changed.

problems/python/maximum-product-of-three-numbers.py

100644100755
File mode changed.

problems/python/maximum-product-subarray.py

100644100755
File mode changed.

problems/python/maximum-subarray-sum-with-one-deletion.py

100644100755
File mode changed.

problems/python/maximum-subarray.py

100644100755
File mode changed.

problems/python/maximum-swap.py

100644100755
File mode changed.

problems/python/maximum-units-on-a-truck.py

100644100755
File mode changed.

problems/python/median-of-two-sorted-arrays.py

100644100755
File mode changed.

problems/python/meeting-rooms-ii.py

100644100755
File mode changed.

problems/python/meeting-rooms.py

100644100755
File mode changed.

problems/python/merge-intervals.py

100644100755
File mode changed.

problems/python/merge-k-sorted-lists.py

100644100755
File mode changed.

problems/python/merge-sorted-array.py

100644100755
File mode changed.

problems/python/merge-two-sorted-lists.py

100644100755
File mode changed.

problems/python/min-cost-climbing-stairs.py

100644100755
File mode changed.

problems/python/min-stack.py

100644100755
File mode changed.

problems/python/minimize-malware-spread.py

100644100755
File mode changed.

problems/python/minimum-absolute-difference-in-bst.py

100644100755
File mode changed.

problems/python/minimum-ascii-delete-sum-for-two-strings.py

100644100755
File mode changed.

problems/python/minimum-cost-to-connect-sticks.py

100644100755
File mode changed.

problems/python/minimum-cost-to-hire-k-workers.py

100644100755
File mode changed.

problems/python/minimum-cost-to-make-at-least-one-valid-path-in-a-grid.py

100644100755
File mode changed.

problems/python/minimum-cost-to-reach-city-with-discounts.py

100644100755
File mode changed.

problems/python/minimum-depth-of-binary-tree.py

100644100755
File mode changed.

problems/python/minimum-difficulty-of-a-job-schedule.py

100644100755
File mode changed.

problems/python/minimum-falling-path-sum-ii.py

100644100755
File mode changed.

problems/python/minimum-knight-moves.py

100644100755
File mode changed.

problems/python/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix.py

100644100755
File mode changed.

problems/python/minimum-path-sum.py

100644100755
File mode changed.

problems/python/minimum-score-triangulation-of-polygon.py

100644100755
File mode changed.

problems/python/minimum-size-subarray-sum.py

100644100755
File mode changed.

problems/python/minimum-swaps-to-group-all-1s-together.py

100644100755
File mode changed.

problems/python/minimum-swaps-to-make-sequences-increasing.py

100644100755
File mode changed.

problems/python/minimum-time-difference.py

100644100755
File mode changed.

problems/python/minimum-window-substring.py

100644100755
File mode changed.

problems/python/minimum-xor-sum-of-two-arrays.py

100644100755
File mode changed.

problems/python/missing-number.py

100644100755
File mode changed.

problems/python/most-frequent-subtree-sum.py

100644100755
File mode changed.

problems/python/most-stones-removed-with-same-row-or-column.py

100644100755
File mode changed.

problems/python/move-zeroes.py

100644100755
File mode changed.

problems/python/moving-average-from-data-stream.py

100644100755
File mode changed.

problems/python/my-calendar-ii.py

100644100755
File mode changed.

problems/python/n-ary-tree-level-order-traversal.py

100644100755
File mode changed.

problems/python/n-ary-tree-postorder-traversal.py

100644100755
File mode changed.

problems/python/n-ary-tree-preorder-traversal.py

100644100755
File mode changed.

problems/python/nested-list-weight-sum.py

100644100755
File mode changed.

problems/python/network-delay-time.py

100644100755
File mode changed.

problems/python/next-closest-time.py

100644100755
File mode changed.

problems/python/next-permutation.py

100644100755
File mode changed.

problems/python/number-complement.py

100644100755
File mode changed.

problems/python/number-of-connected-components-in-an-undirected-graph.py

100644100755
File mode changed.

problems/python/number-of-islands-ii.py

100644100755
File mode changed.

problems/python/number-of-islands.py

100644100755
File mode changed.

problems/python/number-of-longest-increasing-subsequence.py

100644100755
File mode changed.

problems/python/number-of-matching-subsequences.py

100644100755
File mode changed.

problems/python/number-of-provinces.py

100644100755
File mode changed.

problems/python/number-of-recent-calls.py

100644100755
File mode changed.

problems/python/number-of-squareful-arrays.py

100644100755
File mode changed.

problems/python/number-of-substrings-containing-all-thre.py

100644100755
File mode changed.

problems/python/number-of-ways-to-arrive-at-destination.py

100644100755
File mode changed.

problems/python/odd-even-jump.py

100644100755
File mode changed.

problems/python/ones-and-zeroes.py

100644100755
File mode changed.

problems/python/open-the-lock.py

100644100755
File mode changed.

problems/python/out-of-boundary-paths.py

100644100755
File mode changed.

problems/python/pacific-atlantic-water-flow.py

100644100755
File mode changed.

problems/python/pairs-of-songs-with-total-durations-divisible-by-60.py

100644100755
File mode changed.

problems/python/palindrome-number.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)