leetcode-problem-solving

module
v0.0.0-...-69a99ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2025 License: GPL-3.0

README

leetcode-problem-solving

My Leetcode Problem Solving Solutions

There are the lists of problems:

  • 3sum
  • 3sum-closest
  • a-number-after-a-double-reversal
  • add-binary
  • add-digits
  • add-two-integers
  • addtwonumbers
  • all-elements-in-two-binary-search-trees
  • alternating-digit-sum
  • amount-of-time-for-binary-tree-to-be-infected
  • ant-on-the-boundary
  • apple-redistribution-into-boxes
  • apply-operations-to-an-array
  • arithmetic-slices-ii-subsequence
  • arithmetic-subarrays
  • array-partition
  • assign-cookies
  • available-captures-for-rook
  • average-of-levels-in-binary-tree
  • average-salary-excluding-the-minimum-and-maximum-salary
  • balance-a-binary-search-tree
  • balanced-binary-tree
  • baseball-game
  • battleships-in-a-board
  • best-sightseeing-pair
  • best-time-to-buy-and-sell-stock
  • binary-gap
  • binary-number-with-alternating-bits
  • binary-search
  • binary-search-tree-iterator
  • binary-search-tree-to-greater-sum-tree
  • binary-tree-inorder-traversal
  • binary-tree-paths
  • binary-tree-postorder-traversal
  • binary-tree-preorder-traversal
  • binary-tree-pruning
  • binary-tree-tilt
  • bitwise-and-of-numbers-range
  • build-an-array-with-stack-operations
  • build-array-from-permutation
  • buy-two-chocolates
  • calculate-amount-paid-in-taxes
  • calculate-delayed-arrival-time
  • calculate-digit-sum-of-a-string
  • calculate-money-in-leetcode-bank
  • can-make-arithmetic-progression-from-sequence
  • capitalize-the-title
  • cells-in-a-range-on-an-excel-sheet
  • cells-with-odd-values-in-a-matrix
  • check-balanced-string
  • check-distances-between-same-letters
  • check-if-a-string-contains-all-binary-codes-of-size-k
  • check-if-a-string-is-an-acronym-of-words
  • check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
  • check-if-all-as-appears-before-all-bs
  • check-if-all-characters-have-equal-number-of-occurrences
  • check-if-array-is-sorted-and-rotated
  • check-if-array-pairs-are-divisible-by-k
  • check-if-bitwise-or-has-trailing-zeros
  • check-if-every-row-and-column-contains-all-numbers
  • check-if-matrix-is-x-matrix
  • check-if-n-and-its-double-exist
  • check-if-number-has-equal-digit-count-and-digit-value
  • check-if-numbers-are-ascending-in-a-sentence
  • check-if-one-string-swap-can-make-strings-equal
  • check-if-the-sentence-is-pangram
  • check-if-two-chessboard-squares-have-the-same-color
  • check-if-two-string-arrays-are-equivalent
  • check-if-word-equals-summation-of-two-words
  • check-whether-two-strings-are-almost-equivalent
  • circular-sentence
  • clear-digits
  • climbing-stairs
  • concatenation-of-array
  • construct-binary-search-tree-from-preorder-traversal
  • construct-k-palindrome-strings
  • construct-quad-tree
  • construct-smallest-number-from-di-string
  • construct-string-from-binary-tree
  • construct-the-minimum-bitwise-array-i
  • container-with-most-water
  • contains-duplicate
  • contiguous-array
  • continuous-subarray-sum
  • convert-1d-array-into-2d-array
  • convert-an-array-into-a-2d-array-with-conditions
  • convert-binary-number-in-a-linked-list-to-integer
  • convert-date-to-binary
  • convert-sorted-array-to-binary-search-tree
  • convert-sorted-list-to-binary-search-tree
  • convert-the-temperature
  • count-asterisks
  • count-binary-substrings
  • count-common-words-with-one-occurrence
  • count-complete-tree-nodes
  • count-elements-with-maximum-frequency
  • count-equal-and-divisible-pairs-in-an-array
  • count-good-nodes-in-binary-tree
  • count-good-triplets
  • count-integers-with-even-digit-sum
  • count-items-matching-a-rule
  • count-largest-group
  • count-negative-numbers-in-a-sorted-matrix
  • count-nodes-equal-to-average-of-subtree
  • count-number-of-bad-pairs
  • count-number-of-distinct-integers-after-reverse-operations
  • count-number-of-maximum-bitwise-or-subsets
  • count-number-of-nice-subarrays
  • count-number-of-pairs-with-absolute-difference-k
  • count-of-matches-in-tournament
  • count-of-substrings-containing-every-vowel-and-k-consonants-i
  • count-operations-to-obtain-zero
  • count-pairs-of-similar-strings
  • count-pairs-that-form-a-complete-day-i
  • count-pairs-whose-sum-is-less-than-target
  • count-partitions-with-even-sum-difference
  • count-prefix-and-suffix-pairs-i
  • count-prefixes-of-a-given-string
  • count-servers-that-communicate
  • count-sorted-vowel-strings
  • count-square-submatrices-with-all-ones
  • count-square-sum-triples
  • count-sub-islands
  • count-substrings-that-satisfy-k-constraint-i
  • count-symmetric-integers
  • count-tested-devices-after-test-operations
  • count-the-digits-that-divide-a-number
  • count-the-number-of-consistent-strings
  • count-the-number-of-special-characters-i
  • count-the-number-of-vowel-strings-in-range
  • count-triplets-that-can-form-two-arrays-of-equal-xor
  • count-unguarded-cells-in-the-grid
  • count-vowel-strings-in-ranges
  • count-vowel-substrings-of-a-string
  • counting-bits
  • counting-words-with-a-given-prefix
  • crawler-log-folder
  • create-binary-tree-from-descriptions
  • create-target-array-in-the-given-order
  • custom-sort-string
  • daily-temperatures
  • decode-the-message
  • decode-xored-array
  • decompress-run-length-encoded-list
  • decrypt-string-from-alphabet-to-integer-mapping
  • deepest-leaves-sum
  • defanging-an-ip-address
  • defuse-the-bomb
  • delete-characters-to-make-fancy-string
  • delete-columns-to-make-sorted
  • delete-greatest-value-in-each-row
  • delete-leaves-with-a-given-value
  • delete-node-in-a-linked-list
  • delete-nodes-and-return-forest
  • delete-nodes-from-linked-list-present-in-array
  • design-a-stack-with-increment-operation
  • design-an-ordered-stream
  • design-browser-history
  • design-circular-deque
  • design-hashmap
  • design-hashset
  • design-neighbor-sum-service
  • design-parking-system
  • design-twitter
  • design-underground-system
  • destination-city
  • determine-color-of-a-chessboard-square
  • determine-if-string-halves-are-alike
  • determine-if-two-strings-are-close
  • di-string-match
  • diameter-of-binary-tree
  • difference-between-element-sum-and-digit-sum-of-an-array
  • difference-between-ones-and-zeros-in-row-and-column
  • different-ways-to-add-parentheses
  • display-table-of-food-orders-in-a-restaurant
  • distribute-candies
  • distribute-candies-among-children-i
  • distribute-candies-to-people
  • distribute-coins-in-binary-tree
  • distribute-elements-into-two-arrays-i
  • divide-a-string-into-groups-of-size-k
  • divide-an-array-into-subarrays-with-minimum-cost-i
  • divide-array-into-arrays-with-max-difference
  • divide-array-into-equal-pairs
  • divide-intervals-into-minimum-number-of-groups
  • divide-players-into-teams-of-equal-skill
  • divisible-and-non-divisible-sums-difference
  • divisor-game
  • double-a-number-represented-as-a-linked-list
  • encode-and-decode-tinyurl
  • evaluate-boolean-binary-tree
  • evaluate-reverse-polish-notation
  • excel-sheet-column-number
  • excel-sheet-column-title
  • execution-of-all-suffix-instructions-staying-in-a-grid
  • existence-of-a-substring-in-a-string-and-its-reverse
  • fair-candy-swap
  • faulty-keyboard
  • fibonacci-number
  • final-array-state-after-k-multiplication-operations-i
  • final-prices-with-a-special-discount-in-a-shop
  • final-value-of-variable-after-performing-operations
  • find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
  • find-all-anagrams-in-a-string
  • find-all-duplicates-in-an-array
  • find-all-groups-of-farmland
  • find-all-k-distant-indices-in-an-array
  • find-and-replace-pattern
  • find-bottom-left-tree-value
  • find-center-of-star-graph
  • find-champion-i
  • find-champion-ii
  • find-common-characters
  • find-common-elements-between-two-arrays
  • find-elements-in-a-contaminated-binary-tree
  • find-first-and-last-position-of-element-in-sorted-array
  • find-first-palindromic-string-in-the-array
  • find-greatest-common-divisor-of-array
  • find-if-array-can-be-sorted
  • find-if-digit-game-can-be-won
  • find-indices-of-stable-mountains
  • find-kth-bit-in-nth-binary-string
  • find-largest-value-in-each-tree-row
  • find-lucky-integer-in-an-array
  • find-maximum-number-of-string-pairs
  • find-minimum-operations-to-make-all-elements-divisible-by-three
  • find-missing-and-repeated-values
  • find-missing-observations
  • find-n-unique-integers-sum-up-to-zero
  • find-nearest-point-that-has-the-same-x-or-y-coordinate
  • find-numbers-with-even-number-of-digits
  • find-occurrences-of-an-element-in-an-array
  • find-players-with-zero-or-one-losses
  • find-subarrays-with-equal-sum
  • find-subsequence-of-length-k-with-the-largest-sum
  • find-target-indices-after-sorting-array
  • find-the-array-concatenation-value
  • find-the-difference-of-two-arrays
  • find-the-distance-value-between-two-arrays
  • find-the-distinct-difference-array

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL