Skip to content

debar2001/Leetcode-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

921 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Topics

Dynamic Programming

2882-ways-to-express-an-integer-as-sum-of-powers
1105-uncrossed-lines
1457-minimum-difficulty-of-a-job-schedule
0718-maximum-length-of-repeated-subarray
1896-maximum-score-from-performing-multiplication-operations
0118-pascals-triangle
0122-best-time-to-buy-and-sell-stock-ii
0121-best-time-to-buy-and-sell-stock
0188-best-time-to-buy-and-sell-stock-iv
1013-fibonacci-number
0053-maximum-subarray
0909-stone-game
1522-stone-game-iii
0902-minimum-number-of-refueling-stops
0843-binary-trees-with-factors
0300-longest-increasing-subsequence
1332-count-vowels-permutation
0458-poor-pigs
0377-combination-sum-iv
0063-unique-paths-ii
0062-unique-paths
0808-number-of-matching-subsequences
0747-min-cost-climbing-stairs
0070-climbing-stairs
0629-k-inverse-pairs-array
0576-out-of-boundary-paths
0473-matchsticks-to-square
1814-jump-game-vi
1583-paint-house-iii
0392-is-subsequence
0097-interleaving-string
0376-wiggle-subsequence
1334-sum-of-numbers-with-units-digit-k
1008-binary-tree-cameras
0005-longest-palindromic-substring
1129-longest-string-chain
0583-delete-operation-for-two-strings
0120-triangle

Array

3541-report-spam-message
1105-uncrossed-lines
0059-spiral-matrix-ii
2679-count-distinct-numbers-on-board
0079-word-search
1324-where-will-the-ball-fall
0864-image-overlap
0692-top-k-frequent-words
1457-minimum-difficulty-of-a-job-schedule
1027-sum-of-even-numbers-after-queries
0336-palindrome-pairs
0718-maximum-length-of-repeated-subarray
0609-find-duplicate-file-in-system
1896-maximum-score-from-performing-multiplication-operations
2117-find-original-array-from-doubled-array
0049-group-anagrams
0393-utf-8-validation
0074-search-a-2d-matrix
0036-valid-sudoku
1499-maximum-performance-of-a-team
0985-bag-of-tokens
0118-pascals-triangle
0566-reshape-the-matrix
2486-most-frequent-even-element
0026-remove-duplicates-from-sorted-array
0016-3sum-closest
0122-best-time-to-buy-and-sell-stock-ii
0121-best-time-to-buy-and-sell-stock
0350-intersection-of-two-arrays-ii
0188-best-time-to-buy-and-sell-stock-iv
1019-squares-of-a-sorted-array
0088-merge-sorted-array
0001-two-sum
2476-check-distances-between-same-letters
2123-the-number-of-weak-characters-in-the-game
0053-maximum-subarray
0217-contains-duplicate
0417-pacific-atlantic-water-flow
0048-rotate-image
0200-number-of-islands
1253-sort-the-matrix-diagonally
0015-3sum
0363-max-sum-of-rectangle-no-larger-than-k
0909-stone-game
2156-stone-game-ix
1522-stone-game-iii
2459-minimum-hours-of-training-to-win-a-competition
0902-minimum-number-of-refueling-stops
0659-split-array-into-consecutive-subsequences
1464-reduce-array-size-to-the-half
0822-unique-morse-code-words
2454-largest-local-values-in-a-matrix
0108-convert-sorted-array-to-binary-search-tree
0843-binary-trees-with-factors
0300-longest-increasing-subsequence
2445-reachable-nodes-with-restrictions
2442-number-of-arithmetic-triplets
2448-count-number-of-bad-pairs
2447-merge-similar-items
0377-combination-sum-iv
0215-kth-largest-element-in-an-array
2113-find-the-kth-largest-integer-in-the-array
0729-my-calendar-i
1547-destination-city
0378-kth-smallest-element-in-a-sorted-matrix
0063-unique-paths-ii
2129-number-of-pairs-of-interchangeable-rectangles
1635-number-of-good-pairs
2436-make-array-zero-by-subtracting-equal-amounts
2437-maximum-number-of-groups-entering-a-competition
0307-range-sum-query-mutable
0952-word-subsets
0926-find-and-replace-pattern
0034-find-first-and-last-position-of-element-in-sorted-array
0240-search-a-2d-matrix-ii
0315-count-of-smaller-numbers-after-self
2432-number-of-zero-filled-subarrays
0808-number-of-matching-subsequences
0747-min-cost-climbing-stairs
0792-binary-search
1145-number-of-submatrices-that-sum-to-target
2423-minimum-deletions-to-make-array-divisible
2421-maximum-number-of-pairs-in-array
2422-query-kth-smallest-trimmed-number
2473-max-sum-of-a-pair-with-equal-sum-of-digits
0695-max-area-of-island
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0473-matchsticks-to-square
2412-minimum-amount-of-time-to-fill-cups
1814-jump-game-vi
1583-paint-house-iii
0724-find-pivot-index
1603-running-sum-of-1d-array
0128-longest-consecutive-sequence
0135-candy
0376-wiggle-subsequence
1575-maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts
1829-maximum-units-on-a-truck
0462-minimum-moves-to-equal-array-elements-ii
0406-queue-reconstruction-by-height
1538-maximum-points-you-can-obtain-from-cards
2398-check-if-matrix-is-x-matrix
0665-non-decreasing-array
1479-construct-target-array-with-multiple-sums
0630-course-schedule-iii
1762-furthest-building-you-can-reach
0839-short-encoding-of-words
1397-search-suggestions-system
0746-prefix-and-suffix-search
1129-longest-string-chain
0120-triangle
1813-maximum-erasure-value
1776-minimum-operations-to-reduce-x-to-zero
0167-two-sum-ii-input-array-is-sorted
0004-median-of-two-sorted-arrays

Hash Table

3541-report-spam-message
2679-count-distinct-numbers-on-board
1960-check-if-the-sentence-is-pangram
0692-top-k-frequent-words
0336-palindrome-pairs
0609-find-duplicate-file-in-system
2117-find-original-array-from-doubled-array
0141-linked-list-cycle
0049-group-anagrams
0242-valid-anagram
0383-ransom-note
0387-first-unique-character-in-a-string
0036-valid-sudoku
2487-optimal-partition-of-string
2486-most-frequent-even-element
0350-intersection-of-two-arrays-ii
0001-two-sum
2476-check-distances-between-same-letters
0217-contains-duplicate
1029-vertical-order-traversal-of-a-binary-tree
0017-letter-combinations-of-a-phone-number
0900-reordered-power-of-2
2461-amount-of-time-for-binary-tree-to-be-infected
0659-split-array-into-consecutive-subsequences
1464-reduce-array-size-to-the-half
0822-unique-morse-code-words
0012-integer-to-roman
0013-roman-to-integer
0126-word-ladder-ii
2455-node-with-highest-edge-score
0030-substring-with-concatenation-of-all-words
0843-binary-trees-with-factors
2445-reachable-nodes-with-restrictions
2442-number-of-arithmetic-triplets
2448-count-number-of-bad-pairs
2447-merge-similar-items
1547-destination-city
0782-jewels-and-stones
2129-number-of-pairs-of-interchangeable-rectangles
1635-number-of-good-pairs
2436-make-array-zero-by-subtracting-equal-amounts
0952-word-subsets
0926-find-and-replace-pattern
2427-first-letter-to-appear-twice
0808-number-of-matching-subsequences
0438-find-all-anagrams-in-a-string
0299-bulls-and-cows
1145-number-of-submatrices-that-sum-to-target
2421-maximum-number-of-pairs-in-array
2473-max-sum-of-a-pair-with-equal-sum-of-digits
0409-longest-palindrome
0142-linked-list-cycle-ii
0105-construct-binary-tree-from-preorder-and-inorder-traversal
2413-smallest-number-in-infinite-set
0205-isomorphic-strings
0128-longest-consecutive-sequence
1770-minimum-deletions-to-make-character-frequencies-unique
0839-short-encoding-of-words
0746-prefix-and-suffix-search
1129-longest-string-chain
1813-maximum-erasure-value
1776-minimum-operations-to-reduce-x-to-zero
0003-longest-substring-without-repeating-characters
0160-intersection-of-two-linked-lists

String

3541-report-spam-message
0079-word-search
0345-reverse-vowels-of-a-string
0038-count-and-say
1960-check-if-the-sentence-is-pangram
0692-top-k-frequent-words
0557-reverse-words-in-a-string-iii
0336-palindrome-pairs
0609-find-duplicate-file-in-system
0020-valid-parentheses
0043-multiply-strings
0049-group-anagrams
0242-valid-anagram
0383-ransom-note
0387-first-unique-character-in-a-string
2487-optimal-partition-of-string
2476-check-distances-between-same-letters
0606-construct-string-from-binary-tree
0017-letter-combinations-of-a-phone-number
0973-stamping-the-sequence
0822-unique-morse-code-words
0012-integer-to-roman
0013-roman-to-integer
0126-word-ladder-ii
0030-substring-with-concatenation-of-all-words
2113-find-the-kth-largest-integer-in-the-array
1547-destination-city
0782-jewels-and-stones
0952-word-subsets
0926-find-and-replace-pattern
2427-first-letter-to-appear-twice
0808-number-of-matching-subsequences
0438-find-all-anagrams-in-a-string
0299-bulls-and-cows
2422-query-kth-smallest-trimmed-number
0409-longest-palindrome
0205-isomorphic-strings
0392-is-subsequence
0097-interleaving-string
1770-minimum-deletions-to-make-character-frequencies-unique
1807-partitioning-into-minimum-number-of-deci-binary-numbers
2401-count-asterisks
0839-short-encoding-of-words
1397-search-suggestions-system
0746-prefix-and-suffix-search
0008-string-to-integer-atoi
0005-longest-palindromic-substring
1129-longest-string-chain
0583-delete-operation-for-two-strings
0003-longest-substring-without-repeating-characters
1454-remove-palindromic-subsequences

Miscellaneous

2741-function-composition
2761-array-reduce-transformation

Matrix

0059-spiral-matrix-ii
0079-word-search
1324-where-will-the-ball-fall
0864-image-overlap
0074-search-a-2d-matrix
0036-valid-sudoku
0566-reshape-the-matrix
0417-pacific-atlantic-water-flow
0048-rotate-image
0200-number-of-islands
1253-sort-the-matrix-diagonally
0363-max-sum-of-rectangle-no-larger-than-k
2454-largest-local-values-in-a-matrix
0378-kth-smallest-element-in-a-sorted-matrix
0063-unique-paths-ii
0240-search-a-2d-matrix-ii
1145-number-of-submatrices-that-sum-to-target
0695-max-area-of-island
2398-check-if-matrix-is-x-matrix

Simulation

0059-spiral-matrix-ii
2679-count-distinct-numbers-on-board
1324-where-will-the-ball-fall
1800-concatenation-of-consecutive-binary-numbers
1027-sum-of-even-numbers-after-queries
0043-multiply-strings
0566-reshape-the-matrix
2436-make-array-zero-by-subtracting-equal-amounts

Math

2679-count-distinct-numbers-on-board
1448-maximum-69-number
1800-concatenation-of-consecutive-binary-numbers
0043-multiply-strings
1013-fibonacci-number
0048-rotate-image
0909-stone-game
2156-stone-game-ix
1522-stone-game-iii
0900-reordered-power-of-2
0326-power-of-three
0342-power-of-four
0012-integer-to-roman
0013-roman-to-integer
2448-count-number-of-bad-pairs
0458-poor-pigs
0888-mirror-reflection
0069-sqrtx
0062-unique-paths
2129-number-of-pairs-of-interchangeable-rectangles
1635-number-of-good-pairs
2437-maximum-number-of-groups-entering-a-competition
2432-number-of-zero-filled-subarrays
0070-climbing-stairs
2423-minimum-deletions-to-make-array-divisible
0462-minimum-moves-to-equal-array-elements-ii
1334-sum-of-numbers-with-units-digit-k
0007-reverse-integer

Backtracking

0079-word-search
1007-numbers-with-same-consecutive-differences
0017-letter-combinations-of-a-phone-number
0126-word-ladder-ii
0473-matchsticks-to-square

Depth-First Search

0079-word-search
1568-pseudo-palindromic-paths-in-a-binary-tree
0094-binary-tree-inorder-traversal
0606-construct-string-from-binary-tree
0832-binary-tree-pruning
1029-vertical-order-traversal-of-a-binary-tree
0637-average-of-levels-in-binary-tree
1544-count-good-nodes-in-binary-tree
0417-pacific-atlantic-water-flow
0200-number-of-islands
2461-amount-of-time-for-binary-tree-to-be-infected
0235-lowest-common-ancestor-of-a-binary-search-tree
0098-validate-binary-search-tree
2445-reachable-nodes-with-restrictions
0114-flatten-binary-tree-to-linked-list
0236-lowest-common-ancestor-of-a-binary-tree
0775-n-ary-tree-preorder-traversal
0695-max-area-of-island
0116-populating-next-right-pointers-in-each-node
0199-binary-tree-right-side-view
1008-binary-tree-cameras

Greedy

1448-maximum-69-number
2117-find-original-array-from-doubled-array
1499-maximum-performance-of-a-team
0985-bag-of-tokens
2487-optimal-partition-of-string
0122-best-time-to-buy-and-sell-stock-ii
2123-the-number-of-weak-characters-in-the-game
2156-stone-game-ix
2459-minimum-hours-of-training-to-win-a-competition
0973-stamping-the-sequence
0902-minimum-number-of-refueling-stops
0659-split-array-into-consecutive-subsequences
1464-reduce-array-size-to-the-half
2436-make-array-zero-by-subtracting-equal-amounts
2437-maximum-number-of-groups-entering-a-competition
0409-longest-palindrome
2412-minimum-amount-of-time-to-fill-cups
0135-candy
0376-wiggle-subsequence
1575-maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts
1829-maximum-units-on-a-truck
1770-minimum-deletions-to-make-character-frequencies-unique
1807-partitioning-into-minimum-number-of-deci-binary-numbers
0630-course-schedule-iii
1762-furthest-building-you-can-reach
1334-sum-of-numbers-with-units-digit-k

Two Pointers

0345-reverse-vowels-of-a-string
0557-reverse-words-in-a-string-iii
0141-linked-list-cycle
0985-bag-of-tokens
0026-remove-duplicates-from-sorted-array
0016-3sum-closest
0350-intersection-of-two-arrays-ii
1019-squares-of-a-sorted-array
0088-merge-sorted-array
0295-find-median-from-data-stream
0015-3sum
0234-palindrome-linked-list
2442-number-of-arithmetic-triplets
0086-partition-list
0908-middle-of-the-linked-list
0142-linked-list-cycle-ii
0392-is-subsequence
0005-longest-palindromic-substring
1129-longest-string-chain
0167-two-sum-ii-input-array-is-sorted
1454-remove-palindromic-subsequences
0160-intersection-of-two-linked-lists

Trie

0692-top-k-frequent-words
0336-palindrome-pairs
0808-number-of-matching-subsequences
0839-short-encoding-of-words
1397-search-suggestions-system
0746-prefix-and-suffix-search

Sorting

0692-top-k-frequent-words
2117-find-original-array-from-doubled-array
0049-group-anagrams
0242-valid-anagram
1499-maximum-performance-of-a-team
0985-bag-of-tokens
0016-3sum-closest
0350-intersection-of-two-arrays-ii
1019-squares-of-a-sorted-array
0088-merge-sorted-array
2123-the-number-of-weak-characters-in-the-game
0217-contains-duplicate
0295-find-median-from-data-stream
1029-vertical-order-traversal-of-a-binary-tree
1253-sort-the-matrix-diagonally
0015-3sum
0900-reordered-power-of-2
1464-reduce-array-size-to-the-half
0843-binary-trees-with-factors
2447-merge-similar-items
0215-kth-largest-element-in-an-array
2113-find-the-kth-largest-integer-in-the-array
0378-kth-smallest-element-in-a-sorted-matrix
2436-make-array-zero-by-subtracting-equal-amounts
0808-number-of-matching-subsequences
2423-minimum-deletions-to-make-array-divisible
2422-query-kth-smallest-trimmed-number
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2412-minimum-amount-of-time-to-fill-cups
1575-maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts
1829-maximum-units-on-a-truck
0462-minimum-moves-to-equal-array-elements-ii
0406-queue-reconstruction-by-height
1770-minimum-deletions-to-make-character-frequencies-unique
0630-course-schedule-iii
1397-search-suggestions-system
1129-longest-string-chain

Heap (Priority Queue)

0692-top-k-frequent-words
1499-maximum-performance-of-a-team
0295-find-median-from-data-stream
0902-minimum-number-of-refueling-stops
0659-split-array-into-consecutive-subsequences
1464-reduce-array-size-to-the-half
0215-kth-largest-element-in-an-array
2113-find-the-kth-largest-integer-in-the-array
0378-kth-smallest-element-in-a-sorted-matrix
2436-make-array-zero-by-subtracting-equal-amounts
2423-minimum-deletions-to-make-array-divisible
2422-query-kth-smallest-trimmed-number
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2413-smallest-number-in-infinite-set
2412-minimum-amount-of-time-to-fill-cups
1814-jump-game-vi
1479-construct-target-array-with-multiple-sums
0630-course-schedule-iii
1762-furthest-building-you-can-reach
1397-search-suggestions-system

Bucket Sort

0692-top-k-frequent-words

Counting

0692-top-k-frequent-words
0383-ransom-note
0387-first-unique-character-in-a-string
2486-most-frequent-even-element
2156-stone-game-ix
0900-reordered-power-of-2
2448-count-number-of-bad-pairs
2129-number-of-pairs-of-interchangeable-rectangles
1635-number-of-good-pairs
2427-first-letter-to-appear-twice
0299-bulls-and-cows
2421-maximum-number-of-pairs-in-array

Bit Manipulation

1800-concatenation-of-consecutive-binary-numbers
1568-pseudo-palindromic-paths-in-a-binary-tree
0393-utf-8-validation
0342-power-of-four
2427-first-letter-to-appear-twice
0473-matchsticks-to-square

Binary Search

0718-maximum-length-of-repeated-subarray
0074-search-a-2d-matrix
0350-intersection-of-two-arrays-ii
0363-max-sum-of-rectangle-no-larger-than-k
0300-longest-increasing-subsequence
0729-my-calendar-i
0378-kth-smallest-element-in-a-sorted-matrix
0069-sqrtx
2437-maximum-number-of-groups-entering-a-competition
0034-find-first-and-last-position-of-element-in-sorted-array
0240-search-a-2d-matrix-ii
0315-count-of-smaller-numbers-after-self
0808-number-of-matching-subsequences
0278-first-bad-version
0792-binary-search
1397-search-suggestions-system
1776-minimum-operations-to-reduce-x-to-zero
0167-two-sum-ii-input-array-is-sorted
0004-median-of-two-sorted-arrays

Sliding Window

0718-maximum-length-of-repeated-subarray
0030-substring-with-concatenation-of-all-words
0438-find-all-anagrams-in-a-string
1538-maximum-points-you-can-obtain-from-cards
1813-maximum-erasure-value
1776-minimum-operations-to-reduce-x-to-zero
0003-longest-substring-without-repeating-characters

Rolling Hash

0718-maximum-length-of-repeated-subarray

Hash Function

0718-maximum-length-of-repeated-subarray

Linked List

0083-remove-duplicates-from-sorted-list
0206-reverse-linked-list
0203-remove-linked-list-elements
0021-merge-two-sorted-lists
0141-linked-list-cycle
0234-palindrome-linked-list
0114-flatten-binary-tree-to-linked-list
0086-partition-list
0092-reverse-linked-list-ii
0908-middle-of-the-linked-list
0142-linked-list-cycle-ii
0116-populating-next-right-pointers-in-each-node
0160-intersection-of-two-linked-lists

Stack

0020-valid-parentheses
0232-implement-queue-using-stacks
2123-the-number-of-weak-characters-in-the-game
0094-binary-tree-inorder-traversal
0234-palindrome-linked-list
0973-stamping-the-sequence
0114-flatten-binary-tree-to-linked-list
0775-n-ary-tree-preorder-traversal

Design

0232-implement-queue-using-stacks
0295-find-median-from-data-stream
0729-my-calendar-i
0307-range-sum-query-mutable
2413-smallest-number-in-infinite-set
0746-prefix-and-suffix-search

Queue

0232-implement-queue-using-stacks
0387-first-unique-character-in-a-string
0973-stamping-the-sequence
1814-jump-game-vi

Recursion

0206-reverse-linked-list
0203-remove-linked-list-elements
0021-merge-two-sorted-lists
1013-fibonacci-number
0326-power-of-three
0234-palindrome-linked-list
0342-power-of-four

Tree

1568-pseudo-palindromic-paths-in-a-binary-tree
0094-binary-tree-inorder-traversal
0606-construct-string-from-binary-tree
0832-binary-tree-pruning
1029-vertical-order-traversal-of-a-binary-tree
0764-n-ary-tree-level-order-traversal
0637-average-of-levels-in-binary-tree
1544-count-good-nodes-in-binary-tree
2461-amount-of-time-for-binary-tree-to-be-infected
0235-lowest-common-ancestor-of-a-binary-search-tree
0098-validate-binary-search-tree
0108-convert-sorted-array-to-binary-search-tree
2445-reachable-nodes-with-restrictions
0114-flatten-binary-tree-to-linked-list
0236-lowest-common-ancestor-of-a-binary-tree
0775-n-ary-tree-preorder-traversal
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0102-binary-tree-level-order-traversal
0116-populating-next-right-pointers-in-each-node
0199-binary-tree-right-side-view
1008-binary-tree-cameras

Breadth-First Search

1568-pseudo-palindromic-paths-in-a-binary-tree
1029-vertical-order-traversal-of-a-binary-tree
0764-n-ary-tree-level-order-traversal
1007-numbers-with-same-consecutive-differences
0637-average-of-levels-in-binary-tree
1544-count-good-nodes-in-binary-tree
0417-pacific-atlantic-water-flow
0200-number-of-islands
2461-amount-of-time-for-binary-tree-to-be-infected
0126-word-ladder-ii
2445-reachable-nodes-with-restrictions
0695-max-area-of-island
0102-binary-tree-level-order-traversal
0116-populating-next-right-pointers-in-each-node
0199-binary-tree-right-side-view

Binary Tree

1568-pseudo-palindromic-paths-in-a-binary-tree
0094-binary-tree-inorder-traversal
0606-construct-string-from-binary-tree
0832-binary-tree-pruning
1029-vertical-order-traversal-of-a-binary-tree
0637-average-of-levels-in-binary-tree
1544-count-good-nodes-in-binary-tree
2461-amount-of-time-for-binary-tree-to-be-infected
0235-lowest-common-ancestor-of-a-binary-search-tree
0098-validate-binary-search-tree
0108-convert-sorted-array-to-binary-search-tree
0114-flatten-binary-tree-to-linked-list
0236-lowest-common-ancestor-of-a-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0102-binary-tree-level-order-traversal
0116-populating-next-right-pointers-in-each-node
0199-binary-tree-right-side-view
1008-binary-tree-cameras

Memoization

1013-fibonacci-number
0070-climbing-stairs

Monotonic Stack

2123-the-number-of-weak-characters-in-the-game

Divide and Conquer

0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0215-kth-largest-element-in-an-array
2113-find-the-kth-largest-integer-in-the-array
0307-range-sum-query-mutable
0240-search-a-2d-matrix-ii
0315-count-of-smaller-numbers-after-self
2422-query-kth-smallest-trimmed-number
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0004-median-of-two-sorted-arrays

Data Stream

0295-find-median-from-data-stream

Union Find

0200-number-of-islands
2445-reachable-nodes-with-restrictions
0695-max-area-of-island
0128-longest-consecutive-sequence

Prefix Sum

0363-max-sum-of-rectangle-no-larger-than-k
1145-number-of-submatrices-that-sum-to-target
0724-find-pivot-index
1603-running-sum-of-1d-array
1538-maximum-points-you-can-obtain-from-cards
1776-minimum-operations-to-reduce-x-to-zero

Ordered Set

0363-max-sum-of-rectangle-no-larger-than-k
2447-merge-similar-items
0729-my-calendar-i
0315-count-of-smaller-numbers-after-self
2413-smallest-number-in-infinite-set

Game Theory

0909-stone-game
2156-stone-game-ix
1522-stone-game-iii

Enumeration

0900-reordered-power-of-2
2442-number-of-arithmetic-triplets
1334-sum-of-numbers-with-units-digit-k

Graph

2455-node-with-highest-edge-score
2445-reachable-nodes-with-restrictions

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree
0098-validate-binary-search-tree
0108-convert-sorted-array-to-binary-search-tree

Combinatorics

0458-poor-pigs
0062-unique-paths

Quickselect

0215-kth-largest-element-in-an-array
2113-find-the-kth-largest-integer-in-the-array
2422-query-kth-smallest-trimmed-number

Geometry

0888-mirror-reflection

Number Theory

0888-mirror-reflection
2129-number-of-pairs-of-interchangeable-rectangles
2423-minimum-deletions-to-make-array-divisible

Segment Tree

0729-my-calendar-i
0307-range-sum-query-mutable
0315-count-of-smaller-numbers-after-self
0406-queue-reconstruction-by-height

Binary Indexed Tree

0307-range-sum-query-mutable
0315-count-of-smaller-numbers-after-self
0406-queue-reconstruction-by-height

Merge Sort

0315-count-of-smaller-numbers-after-self

Interactive

0278-first-bad-version

Radix Sort

2422-query-kth-smallest-trimmed-number

Bitmask

0473-matchsticks-to-square

Monotonic Queue

1814-jump-game-vi

Organized using LEET2GIT to sync and structure the LeetCode solutions.

About

Made this repository to track my progress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors