Skip to content

LEARNER-dakshesh/Coding-Gyan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding-Gyan

All A-Z codes done on LeetCode

Two Pointers

0075-sort-colors
0287-find-the-duplicate-number
0443-string-compression
0633-sum-of-square-numbers
0875-longest-mountain-in-array
2572-append-characters-to-string-to-make-subsequence
2699-count-the-number-of-fair-pairs

String

0443-string-compression
0648-replace-words
1044-find-common-characters
2572-append-characters-to-string-to-make-subsequence
2603-reward-top-k-students

Greedy

0797-rabbits-in-forest
0982-minimum-increment-to-make-array-unique
0991-array-of-doubled-pairs
2094-remove-stones-to-minimize-the-total
2572-append-characters-to-string-to-make-subsequence

Array

0075-sort-colors
0287-find-the-duplicate-number
0648-replace-words
0797-rabbits-in-forest
0875-longest-mountain-in-array
0912-random-pick-with-weight
0982-minimum-increment-to-make-array-unique
0991-array-of-doubled-pairs
1002-maximum-width-ramp
1044-find-common-characters
1217-relative-sort-array
1370-count-number-of-nice-subarrays
1605-minimum-number-of-days-to-make-m-bouquets
1860-find-kth-largest-xor-coordinate-value
2094-remove-stones-to-minimize-the-total
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2603-reward-top-k-students
2699-count-the-number-of-fair-pairs

Hash Table

0648-replace-words
0797-rabbits-in-forest
0991-array-of-doubled-pairs
1044-find-common-characters
1217-relative-sort-array
1370-count-number-of-nice-subarrays
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2603-reward-top-k-students

Dynamic Programming

0875-longest-mountain-in-array

Enumeration

0875-longest-mountain-in-array

Binary Search

0287-find-the-duplicate-number
0633-sum-of-square-numbers
0912-random-pick-with-weight
1605-minimum-number-of-days-to-make-m-bouquets
2699-count-the-number-of-fair-pairs

Bit Manipulation

0287-find-the-duplicate-number
1860-find-kth-largest-xor-coordinate-value

Math

0633-sum-of-square-numbers
0797-rabbits-in-forest
0912-random-pick-with-weight
1370-count-number-of-nice-subarrays
2278-find-three-consecutive-integers-that-sum-to-a-given-number

Prefix Sum

0912-random-pick-with-weight
1860-find-kth-largest-xor-coordinate-value

Randomized

0912-random-pick-with-weight

Trie

0648-replace-words

Stack

1002-maximum-width-ramp

Monotonic Stack

1002-maximum-width-ramp

Sorting

0075-sort-colors
0982-minimum-increment-to-make-array-unique
0991-array-of-doubled-pairs
1217-relative-sort-array
1860-find-kth-largest-xor-coordinate-value
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2603-reward-top-k-students
2699-count-the-number-of-fair-pairs

Heap (Priority Queue)

1860-find-kth-largest-xor-coordinate-value
2094-remove-stones-to-minimize-the-total
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2603-reward-top-k-students

Counting Sort

0982-minimum-increment-to-make-array-unique
1217-relative-sort-array

Divide and Conquer

1860-find-kth-largest-xor-coordinate-value

Matrix

1860-find-kth-largest-xor-coordinate-value

Quickselect

1860-find-kth-largest-xor-coordinate-value

Sliding Window

1370-count-number-of-nice-subarrays

Graph

1916-find-center-of-star-graph

Simulation

2278-find-three-consecutive-integers-that-sum-to-a-given-number

LeetCode Topics

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0008-string-to-integer-atoi
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0032-longest-valid-parentheses
0165-compare-version-numbers
0179-largest-number
0316-remove-duplicate-letters
0318-maximum-product-of-word-lengths
0402-remove-k-digits
0520-detect-capital
0567-permutation-in-string
0677-map-sum-pairs
0692-top-k-frequent-words
1298-reverse-substrings-between-each-pair-of-parentheses
1304-longest-happy-string
1534-minimum-number-of-frogs-croaking
1562-people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list
1756-minimum-deletions-to-make-string-balanced
1890-sum-of-beauty-of-all-substrings
2077-largest-number-after-mutating-substring
2095-minimum-number-of-swaps-to-make-the-string-balanced
2133-number-of-pairs-of-strings-with-concatenation-equal-to-target
2232-adding-spaces-to-a-string
2464-time-needed-to-rearrange-a-binary-string
2580-circular-sentence
2828-lexicographically-smallest-string-after-substring-operation
3018-make-string-a-subsequence-using-cyclic-increments
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3195-separate-black-and-white-balls
3276-minimum-number-of-pushes-to-type-word-ii
3451-string-compression-iii
3462-vowels-game-in-a-string

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0039-combination-sum
0054-spiral-matrix
0059-spiral-matrix-ii
0080-remove-duplicates-from-sorted-array-ii
0084-largest-rectangle-in-histogram
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0135-candy
0154-find-minimum-in-rotated-sorted-array-ii
0179-largest-number
0198-house-robber
0200-number-of-islands
0213-house-robber-ii
0275-h-index-ii
0318-maximum-product-of-word-lengths
0322-coin-change
0350-intersection-of-two-arrays-ii
0373-find-k-pairs-with-smallest-sums
0419-battleships-in-a-board
0447-number-of-boomerangs
0503-next-greater-element-ii
0525-contiguous-array
0624-maximum-distance-in-arrays
0719-find-k-th-smallest-pair-distance
0805-escape-the-ghosts
0892-shortest-subarray-with-sum-at-least-k
0948-sort-an-array
1002-maximum-width-ramp
1016-subarray-sums-divisible-by-k
1055-pairs-of-songs-with-total-durations-divisible-by-60
1147-flip-columns-for-maximum-number-of-equal-rows
1333-sort-the-jumbled-numbers
1346-maximize-the-topmost-element-after-k-moves
1435-xor-queries-of-a-subarray
1511-count-number-of-teams
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1562-people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1620-check-if-array-pairs-are-divisible-by-k
1657-find-the-winner-of-an-array-game
1694-make-sum-divisible-by-p
1711-find-valid-matrix-given-row-and-column-sums
1787-sum-of-absolute-differences-in-a-sorted-array
1803-average-waiting-time
1886-minimum-limit-of-balls-in-a-bag
1940-maximum-xor-for-each-query
1966-frequency-of-the-most-frequent-element
1972-rotating-the-box
2006-find-the-student-that-will-replace-the-chalk
2077-largest-number-after-mutating-substring
2089-maximum-matrix-sum
2117-find-original-array-from-doubled-array
2118-maximum-earnings-from-taxi
2123-the-number-of-weak-characters-in-the-game
2133-number-of-pairs-of-strings-with-concatenation-equal-to-target
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2232-adding-spaces-to-a-string
2255-minimum-swaps-to-group-all-1s-together-ii
2270-find-all-lonely-numbers-in-the-array
2306-create-binary-tree-from-descriptions
2310-minimum-operations-to-halve-array-sum
2356-largest-combination-with-bitwise-and-greater-than-zero
2388-replace-elements-in-an-array
2402-maximum-xor-after-operations
2448-count-number-of-bad-pairs
2488-divide-intervals-into-minimum-number-of-groups
2503-longest-subarray-with-maximum-bitwise-and
2530-minimize-maximum-of-array
2553-total-cost-to-hire-k-workers
2581-divide-players-into-teams-of-equal-skill
2600-maximum-tastiness-of-candy-basket
2616-maximal-score-after-applying-k-operations
2640-maximum-number-of-integers-to-choose-from-a-range-i
2655-rearrange-array-to-maximize-prefix-score
2676-find-the-score-of-all-prefixes-of-an-array
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2718-minimum-operations-to-make-all-array-elements-equal
2920-minimum-seconds-to-equalize-a-circular-array
2954-maximum-sum-of-almost-unique-subarray
3000-minimum-absolute-difference-between-elements-with-constraint
3081-minimum-array-length-after-pair-removals
3141-minimum-size-subarray-in-infinite-array
3291-find-if-array-can-be-sorted
3427-special-array-ii
3501-delete-nodes-from-linked-list-present-in-array
3515-find-if-digit-game-can-be-won
3522-find-the-power-of-k-size-subarrays-i

Dynamic Programming

0032-longest-valid-parentheses
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0198-house-robber
0213-house-robber-ii
0322-coin-change
1362-airplane-seat-assignment-probability
1511-count-number-of-teams
1756-minimum-deletions-to-make-string-balanced
1912-number-of-restricted-paths-from-first-to-last-node
2118-maximum-earnings-from-taxi
2464-time-needed-to-rearrange-a-binary-string
2530-minimize-maximum-of-array

Binary Search

0004-median-of-two-sorted-arrays
0154-find-minimum-in-rotated-sorted-array-ii
0275-h-index-ii
0350-intersection-of-two-arrays-ii
0668-kth-smallest-number-in-multiplication-table
0719-find-k-th-smallest-pair-distance
0892-shortest-subarray-with-sum-at-least-k
1615-range-sum-of-sorted-subarray-sums
1886-minimum-limit-of-balls-in-a-bag
1966-frequency-of-the-most-frequent-element
2006-find-the-student-that-will-replace-the-chalk
2118-maximum-earnings-from-taxi
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2530-minimize-maximum-of-array
2600-maximum-tastiness-of-candy-basket
2640-maximum-number-of-integers-to-choose-from-a-range-i
2699-count-the-number-of-fair-pairs
2718-minimum-operations-to-make-all-array-elements-equal
3000-minimum-absolute-difference-between-elements-with-constraint
3081-minimum-array-length-after-pair-removals
3427-special-array-ii

Greedy

0122-best-time-to-buy-and-sell-stock-ii
0135-candy
0179-largest-number
0316-remove-duplicate-letters
0402-remove-k-digits
0624-maximum-distance-in-arrays
0670-maximum-swap
1304-longest-happy-string
1346-maximize-the-topmost-element-after-k-moves
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1711-find-valid-matrix-given-row-and-column-sums
1966-frequency-of-the-most-frequent-element
2077-largest-number-after-mutating-substring
2089-maximum-matrix-sum
2095-minimum-number-of-swaps-to-make-the-string-balanced
2117-find-original-array-from-doubled-array
2123-the-number-of-weak-characters-in-the-game
2310-minimum-operations-to-halve-array-sum
2488-divide-intervals-into-minimum-number-of-groups
2530-minimize-maximum-of-array
2600-maximum-tastiness-of-candy-basket
2616-maximal-score-after-applying-k-operations
2640-maximum-number-of-integers-to-choose-from-a-range-i
2655-rearrange-array-to-maximize-prefix-score
2828-lexicographically-smallest-string-after-substring-operation
3081-minimum-array-length-after-pair-removals
3195-separate-black-and-white-balls
3276-minimum-number-of-pushes-to-type-word-ii

Sorting

0179-largest-number
0350-intersection-of-two-arrays-ii
0692-top-k-frequent-words
0719-find-k-th-smallest-pair-distance
0948-sort-an-array
1333-sort-the-jumbled-numbers
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1966-frequency-of-the-most-frequent-element
2117-find-original-array-from-doubled-array
2118-maximum-earnings-from-taxi
2123-the-number-of-weak-characters-in-the-game
2179-most-beautiful-item-for-each-query
2488-divide-intervals-into-minimum-number-of-groups
2581-divide-players-into-teams-of-equal-skill
2600-maximum-tastiness-of-candy-basket
2640-maximum-number-of-integers-to-choose-from-a-range-i
2655-rearrange-array-to-maximize-prefix-score
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2718-minimum-operations-to-make-all-array-elements-equal
3276-minimum-number-of-pushes-to-type-word-ii
3291-find-if-array-can-be-sorted

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0202-happy-number
0350-intersection-of-two-arrays-ii
0447-number-of-boomerangs
0525-contiguous-array
0567-permutation-in-string
0677-map-sum-pairs
0692-top-k-frequent-words
0931-maximum-frequency-stack
1016-subarray-sums-divisible-by-k
1055-pairs-of-songs-with-total-durations-divisible-by-60
1147-flip-columns-for-maximum-number-of-equal-rows
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1562-people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list
1620-check-if-array-pairs-are-divisible-by-k
1694-make-sum-divisible-by-p
1890-sum-of-beauty-of-all-substrings
2117-find-original-array-from-doubled-array
2118-maximum-earnings-from-taxi
2133-number-of-pairs-of-strings-with-concatenation-equal-to-target
2270-find-all-lonely-numbers-in-the-array
2306-create-binary-tree-from-descriptions
2356-largest-combination-with-bitwise-and-greater-than-zero
2388-replace-elements-in-an-array
2448-count-number-of-bad-pairs
2581-divide-players-into-teams-of-equal-skill
2640-maximum-number-of-integers-to-choose-from-a-range-i
2695-find-score-of-an-array-after-marking-all-elements
2920-minimum-seconds-to-equalize-a-circular-array
2954-maximum-sum-of-almost-unique-subarray
3081-minimum-array-length-after-pair-removals
3141-minimum-size-subarray-in-infinite-array
3276-minimum-number-of-pushes-to-type-word-ii
3501-delete-nodes-from-linked-list-present-in-array

Two Pointers

0028-find-the-index-of-the-first-occurrence-in-a-string
0080-remove-duplicates-from-sorted-array-ii
0165-compare-version-numbers
0202-happy-number
0350-intersection-of-two-arrays-ii
0567-permutation-in-string
0719-find-k-th-smallest-pair-distance
1615-range-sum-of-sorted-subarray-sums
1972-rotating-the-box
2095-minimum-number-of-swaps-to-make-the-string-balanced
2216-delete-the-middle-node-of-a-linked-list
2232-adding-spaces-to-a-string
2488-divide-intervals-into-minimum-number-of-groups
2553-total-cost-to-hire-k-workers
2581-divide-players-into-teams-of-equal-skill
2699-count-the-number-of-fair-pairs
3018-make-string-a-subsequence-using-cyclic-increments
3081-minimum-array-length-after-pair-removals
3195-separate-black-and-white-balls

Math

0202-happy-number
0445-add-two-numbers-ii
0447-number-of-boomerangs
0668-kth-smallest-number-in-multiplication-table
0670-maximum-swap
0805-escape-the-ghosts
1362-airplane-seat-assignment-probability
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1787-sum-of-absolute-differences-in-a-sorted-array
2402-maximum-xor-after-operations
2448-count-number-of-bad-pairs
2903-insert-greatest-common-divisors-in-linked-list
3462-vowels-game-in-a-string
3515-find-if-digit-game-can-be-won

Heap (Priority Queue)

0373-find-k-pairs-with-smallest-sums
0692-top-k-frequent-words
0789-kth-largest-element-in-a-stream
0892-shortest-subarray-with-sum-at-least-k
0948-sort-an-array
1304-longest-happy-string
1912-number-of-restricted-paths-from-first-to-last-node
2310-minimum-operations-to-halve-array-sum
2488-divide-intervals-into-minimum-number-of-groups
2553-total-cost-to-hire-k-workers
2616-maximal-score-after-applying-k-operations
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements

Tree

0098-validate-binary-search-tree
0099-recover-binary-search-tree
0101-symmetric-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0129-sum-root-to-leaf-numbers
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0513-find-bottom-left-tree-value
0515-find-largest-value-in-each-tree-row
0764-n-ary-tree-level-order-traversal
0789-kth-largest-element-in-a-stream
0832-binary-tree-pruning
1450-delete-leaves-with-a-given-value
1484-linked-list-in-binary-tree
1731-even-odd-tree
2306-create-binary-tree-from-descriptions

Depth-First Search

0098-validate-binary-search-tree
0099-recover-binary-search-tree
0101-symmetric-tree
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0129-sum-root-to-leaf-numbers
0145-binary-tree-postorder-traversal
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0386-lexicographical-numbers
0419-battleships-in-a-board
0513-find-bottom-left-tree-value
0515-find-largest-value-in-each-tree-row
0813-all-paths-from-source-to-target
0820-find-eventual-safe-states
0832-binary-tree-pruning
1450-delete-leaves-with-a-given-value
1484-linked-list-in-binary-tree

Breadth-First Search

0101-symmetric-tree
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0322-coin-change
0513-find-bottom-left-tree-value
0515-find-largest-value-in-each-tree-row
0764-n-ary-tree-level-order-traversal
0813-all-paths-from-source-to-target
0820-find-eventual-safe-states
1484-linked-list-in-binary-tree
1731-even-odd-tree

Binary Tree

0098-validate-binary-search-tree
0099-recover-binary-search-tree
0101-symmetric-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0129-sum-root-to-leaf-numbers
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0513-find-bottom-left-tree-value
0515-find-largest-value-in-each-tree-row
0789-kth-largest-element-in-a-stream
0832-binary-tree-pruning
1450-delete-leaves-with-a-given-value
1484-linked-list-in-binary-tree
1731-even-odd-tree
2306-create-binary-tree-from-descriptions

Divide and Conquer

0004-median-of-two-sorted-arrays
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0948-sort-an-array

Linked List

0024-swap-nodes-in-pairs
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0445-add-two-numbers-ii
0725-split-linked-list-in-parts
1484-linked-list-in-binary-tree
1765-merge-in-between-linked-lists
2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2216-delete-the-middle-node-of-a-linked-list
2573-remove-nodes-from-linked-list
2903-insert-greatest-common-divisors-in-linked-list
3501-delete-nodes-from-linked-list-present-in-array

Stack

0020-valid-parentheses
0032-longest-valid-parentheses
0084-largest-rectangle-in-histogram
0114-flatten-binary-tree-to-linked-list
0145-binary-tree-postorder-traversal
0316-remove-duplicate-letters
0402-remove-k-digits
0445-add-two-numbers-ii
0503-next-greater-element-ii
0931-maximum-frequency-stack
1002-maximum-width-ramp
1298-reverse-substrings-between-each-pair-of-parentheses
1756-minimum-deletions-to-make-string-balanced
2095-minimum-number-of-swaps-to-make-the-string-balanced
2123-the-number-of-weak-characters-in-the-game
2573-remove-nodes-from-linked-list

Counting

0692-top-k-frequent-words
1055-pairs-of-songs-with-total-durations-divisible-by-60
1534-minimum-number-of-frogs-croaking
1620-check-if-array-pairs-are-divisible-by-k
1890-sum-of-beauty-of-all-substrings
2133-number-of-pairs-of-strings-with-concatenation-equal-to-target
2270-find-all-lonely-numbers-in-the-array
2356-largest-combination-with-bitwise-and-greater-than-zero
2448-count-number-of-bad-pairs
3081-minimum-array-length-after-pair-removals
3276-minimum-number-of-pushes-to-type-word-ii

Binary Search Tree

0098-validate-binary-search-tree
0099-recover-binary-search-tree
0789-kth-largest-element-in-a-stream

Simulation

0054-spiral-matrix
0059-spiral-matrix-ii
1657-find-the-winner-of-an-array-game
1803-average-waiting-time
2006-find-the-student-that-will-replace-the-chalk
2232-adding-spaces-to-a-string
2388-replace-elements-in-an-array
2464-time-needed-to-rearrange-a-binary-string
2553-total-cost-to-hire-k-workers
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements

Brainteaser

1362-airplane-seat-assignment-probability
2503-longest-subarray-with-maximum-bitwise-and
3462-vowels-game-in-a-string

Probability and Statistics

1362-airplane-seat-assignment-probability

Bit Manipulation

0318-maximum-product-of-word-lengths
1435-xor-queries-of-a-subarray
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1940-maximum-xor-for-each-query
2323-minimum-bit-flips-to-convert-number
2356-largest-combination-with-bitwise-and-greater-than-zero
2402-maximum-xor-after-operations
2503-longest-subarray-with-maximum-bitwise-and
3291-find-if-array-can-be-sorted

Design

0677-map-sum-pairs
0789-kth-largest-element-in-a-stream
0931-maximum-frequency-stack

Trie

0386-lexicographical-numbers
0677-map-sum-pairs
0692-top-k-frequent-words

Backtracking

0039-combination-sum
0113-path-sum-ii
0813-all-paths-from-source-to-target

Bucket Sort

0692-top-k-frequent-words
0948-sort-an-array

Sliding Window

0003-longest-substring-without-repeating-characters
0567-permutation-in-string
0892-shortest-subarray-with-sum-at-least-k
1966-frequency-of-the-most-frequent-element
2255-minimum-swaps-to-group-all-1s-together-ii
2954-maximum-sum-of-almost-unique-subarray
3141-minimum-size-subarray-in-infinite-array
3522-find-the-power-of-k-size-subarrays-i

Prefix Sum

0525-contiguous-array
0892-shortest-subarray-with-sum-at-least-k
1016-subarray-sums-divisible-by-k
1435-xor-queries-of-a-subarray
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1694-make-sum-divisible-by-p
1787-sum-of-absolute-differences-in-a-sorted-array
1940-maximum-xor-for-each-query
1966-frequency-of-the-most-frequent-element
2006-find-the-student-that-will-replace-the-chalk
2488-divide-intervals-into-minimum-number-of-groups
2530-minimize-maximum-of-array
2655-rearrange-array-to-maximize-prefix-score
2676-find-the-score-of-all-prefixes-of-an-array
2718-minimum-operations-to-make-all-array-elements-equal
3141-minimum-size-subarray-in-infinite-array
3427-special-array-ii

Matrix

0054-spiral-matrix
0059-spiral-matrix-ii
0200-number-of-islands
0419-battleships-in-a-board
1147-flip-columns-for-maximum-number-of-equal-rows
1711-find-valid-matrix-given-row-and-column-sums
1972-rotating-the-box
2089-maximum-matrix-sum

Game Theory

3462-vowels-game-in-a-string

Merge Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Binary Indexed Tree

1511-count-number-of-teams

Number Theory

2903-insert-greatest-common-divisors-in-linked-list

Data Stream

0789-kth-largest-element-in-a-stream

Union Find

0200-number-of-islands

Graph

0207-course-schedule
0210-course-schedule-ii
0813-all-paths-from-source-to-target
0820-find-eventual-safe-states
1912-number-of-restricted-paths-from-first-to-last-node

Topological Sort

0207-course-schedule
0210-course-schedule-ii
0820-find-eventual-safe-states
1912-number-of-restricted-paths-from-first-to-last-node

Shortest Path

1912-number-of-restricted-paths-from-first-to-last-node

Ordered Set

0931-maximum-frequency-stack
3000-minimum-absolute-difference-between-elements-with-constraint

Monotonic Stack

0084-largest-rectangle-in-histogram
0316-remove-duplicate-letters
0402-remove-k-digits
0503-next-greater-element-ii
1002-maximum-width-ramp
2123-the-number-of-weak-characters-in-the-game
2573-remove-nodes-from-linked-list

Database

0180-consecutive-numbers
0570-managers-with-at-least-5-direct-reports
1278-product-price-at-a-given-date
1292-immediate-food-delivery-ii
1317-monthly-transactions-i
2087-confirmation-rate

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Recursion

0024-swap-nodes-in-pairs
2573-remove-nodes-from-linked-list

Queue

0892-shortest-subarray-with-sum-at-least-k

Monotonic Queue

0892-shortest-subarray-with-sum-at-least-k

About

All A-Z codes done on LeetCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published