Skip to content

M3IJI3/leetcode_solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,762 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_solution

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

See more about solutions at my Notion

LeetCode Topics

Array

Problem Name Difficulty
0001-two-sum
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0035-search-insert-position
0036-valid-sudoku
0039-combination-sum undefined
0042-trapping-rain-water
0045-jump-game-ii
0046-permutations undefined
0051-n-queens undefined
0053-maximum-subarray undefined
0054-spiral-matrix
0055-jump-game
0056-merge-intervals undefined
0066-plus-one
0068-text-justification
0073-set-matrix-zeroes undefined
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0090-subsets-ii undefined
0108-convert-sorted-array-to-binary-search-tree
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0130-surrounded-regions undefined
0134-gas-station
0135-candy
0140-word-break-ii undefined
0152-maximum-product-subarray
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0198-house-robber undefined
0200-number-of-islands undefined
0209-minimum-size-subarray-sum
0213-house-robber-ii undefined
0216-combination-sum-iii undefined
0219-contains-duplicate-ii
0238-product-of-array-except-self
0239-sliding-window-maximum undefined
0274-h-index
0377-combination-sum-iv undefined
0413-arithmetic-slices
0417-pacific-atlantic-water-flow undefined
0463-island-perimeter undefined
0542-01-matrix undefined
0560-subarray-sum-equals-k undefined
0594-longest-harmonious-subsequence
0643-maximum-average-subarray-i
0658-find-k-closest-elements
0695-max-area-of-island undefined
0713-subarray-product-less-than-k
0733-flood-fill undefined
0740-delete-and-earn undefined
0747-min-cost-climbing-stairs undefined
0928-surface-area-of-3d-shapes undefined
0966-binary-subarrays-with-sum
0971-shortest-bridge undefined
1020-longest-turbulent-subarray
1036-rotting-oranges undefined
1046-max-consecutive-ones-iii
1073-number-of-enclaves undefined
1171-shortest-path-in-binary-matrix undefined
1222-remove-covered-intervals undefined
1234-number-of-paths-with-max-score undefined
1256-rank-transform-of-an-array undefined
1360-maximum-length-of-a-concatenated-string-with-unique-characters undefined
1370-count-number-of-nice-subarrays
1380-number-of-closed-islands undefined
1381-maximum-score-words-formed-by-letters undefined
1428-jump-game-iii undefined
1436-get-watched-videos-by-your-friends undefined
1586-longest-subarray-of-1s-after-deleting-one-element
1723-maximum-number-of-achievable-transfer-requests undefined
1755-defuse-the-bomb
1776-minimum-operations-to-reduce-x-to-zero
1813-maximum-erasure-value
1876-map-of-highest-peak undefined
1966-frequency-of-the-most-frequent-element
2035-count-sub-islands undefined
2038-nearest-exit-from-entrance-in-maze undefined
2112-minimum-difference-between-highest-and-lowest-of-k-scores
2206-detonate-the-maximum-bombs undefined
2482-maximum-rows-covered-by-columns undefined
2696-the-number-of-beautiful-subsets undefined
2794-maximum-number-of-moves-in-a-grid undefined
2866-longest-even-odd-subarray-with-threshold
3092-minimum-moves-to-spread-stones-over-grid undefined
3517-shortest-distance-after-road-addition-queries-i undefined
3649-minimum-time-to-break-locks-i undefined
3823-count-islands-with-total-value-divisible-by-k undefined
3838-path-existence-queries-in-a-graph-i undefined
3852-path-existence-queries-in-a-graph-ii undefined
4062-house-robber-v undefined
4071-word-squares-ii undefined
1000005-pond-sizes-lcci undefined
1000227-YesdPw undefined
1000434-UEcfPD undefined

Math

Problem Name Difficulty
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0066-plus-one
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0189-rotate-array
0928-surface-area-of-3d-shapes undefined
1370-count-number-of-nice-subarrays
1430-find-the-k-beauty-of-a-number
2206-detonate-the-maximum-bombs undefined
2348-count-number-of-texts undefined
2696-the-number-of-beautiful-subsets undefined
2802-find-the-punishment-number-of-an-integer undefined
4135-concatenate-non-zero-digits-and-multiply-by-sum-i undefined
4136-concatenate-non-zero-digits-and-multiply-by-sum-ii undefined

Hash Table

Problem Name Difficulty
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0030-substring-with-concatenation-of-all-words
0036-valid-sudoku
0073-set-matrix-zeroes undefined
0076-minimum-window-substring undefined
0140-word-break-ii undefined
0141-linked-list-cycle undefined
0142-linked-list-cycle-ii undefined
0160-intersection-of-two-linked-lists undefined
0169-majority-element
0187-repeated-dna-sequences
0205-isomorphic-strings
0219-contains-duplicate-ii
0242-valid-anagram
0290-word-pattern
0383-ransom-note
0395-longest-substring-with-at-least-k-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0560-subarray-sum-equals-k undefined
0594-longest-harmonious-subsequence
0740-delete-and-earn undefined
0966-binary-subarrays-with-sum
1256-rank-transform-of-an-array undefined
1261-swap-for-longest-repeated-character-substring
1370-count-number-of-nice-subarrays
1381-maximum-score-words-formed-by-letters undefined
1436-get-watched-videos-by-your-friends undefined
1460-number-of-substrings-containing-all-three-characters
1715-split-a-string-into-the-max-number-of-unique-substrings undefined
1776-minimum-operations-to-reduce-x-to-zero
1813-maximum-erasure-value
1873-longest-nice-substring
1987-substrings-of-size-three-with-distinct-characters
2348-count-number-of-texts undefined
2696-the-number-of-beautiful-subsets undefined
3349-maximum-length-substring-with-two-occurrences
3838-path-existence-queries-in-a-graph-i undefined

String

Problem Name Difficulty
0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0022-generate-parentheses undefined
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0058-length-of-last-word
0067-add-binary
0068-text-justification
0076-minimum-window-substring undefined
0093-restore-ip-addresses undefined
0125-valid-palindrome
0131-palindrome-partitioning undefined
0140-word-break-ii undefined
0151-reverse-words-in-a-string
0187-repeated-dna-sequences
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0301-remove-invalid-parentheses undefined
0383-ransom-note
0392-is-subsequence
0395-longest-substring-with-at-least-k-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
1211-iterator-for-combination undefined
1261-swap-for-longest-repeated-character-substring
1321-get-equal-substrings-within-budget
1351-replace-the-substring-for-balanced-string
1360-maximum-length-of-a-concatenated-string-with-unique-characters undefined
1381-maximum-score-words-formed-by-letters undefined
1430-find-the-k-beauty-of-a-number
1460-number-of-substrings-containing-all-three-characters
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1715-split-a-string-into-the-max-number-of-unique-substrings undefined
1873-longest-nice-substring
1976-splitting-a-string-into-descending-consecutive-values undefined
1987-substrings-of-size-three-with-distinct-characters
2130-maximum-product-of-the-length-of-two-palindromic-subsequences undefined
2348-count-number-of-texts undefined
2463-minimum-recolors-to-get-k-consecutive-black-blocks
3349-maximum-length-substring-with-two-occurrences
4071-word-squares-ii undefined
4136-concatenate-non-zero-digits-and-multiply-by-sum-ii undefined

Stack

Problem Name Difficulty
0020-valid-parentheses
0042-trapping-rain-water
0094-binary-tree-inorder-traversal
0234-palindrome-linked-list undefined

Linked List

Problem Name Difficulty
0021-merge-two-sorted-lists
0083-remove-duplicates-from-sorted-list
0141-linked-list-cycle undefined
0142-linked-list-cycle-ii undefined
0160-intersection-of-two-linked-lists undefined
0206-reverse-linked-list undefined
0234-palindrome-linked-list undefined

Recursion

Problem Name Difficulty
0021-merge-two-sorted-lists
0206-reverse-linked-list undefined
0234-palindrome-linked-list undefined

Two Pointers

Problem Name Difficulty
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0042-trapping-rain-water
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle undefined
0142-linked-list-cycle-ii undefined
0151-reverse-words-in-a-string
0160-intersection-of-two-linked-lists undefined
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0234-palindrome-linked-list undefined
0392-is-subsequence
0658-find-k-closest-elements
3852-path-existence-queries-in-a-graph-ii undefined

String Matching

Problem Name Difficulty
0028-find-the-index-of-the-first-occurrence-in-a-string

Binary Search

Problem Name Difficulty
0035-search-insert-position
0069-sqrtx
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0658-find-k-closest-elements
0713-subarray-product-less-than-k
1046-max-consecutive-ones-iii
1321-get-equal-substrings-within-budget
1776-minimum-operations-to-reduce-x-to-zero
1966-frequency-of-the-most-frequent-element
3838-path-existence-queries-in-a-graph-i undefined
3852-path-existence-queries-in-a-graph-ii undefined

Bit Manipulation

Problem Name Difficulty
0067-add-binary
0090-subsets-ii undefined
0187-repeated-dna-sequences
1360-maximum-length-of-a-concatenated-string-with-unique-characters undefined
1381-maximum-score-words-formed-by-letters undefined
1723-maximum-number-of-achievable-transfer-requests undefined
1873-longest-nice-substring
2130-maximum-product-of-the-length-of-two-palindromic-subsequences undefined
2482-maximum-rows-covered-by-columns undefined
3092-minimum-moves-to-spread-stones-over-grid undefined
3217-number-of-possible-sets-of-closing-branches undefined
3649-minimum-time-to-break-locks-i undefined
3852-path-existence-queries-in-a-graph-ii undefined
1000434-UEcfPD undefined

Simulation

Problem Name Difficulty
0054-spiral-matrix
0067-add-binary
0068-text-justification

Dynamic Programming

Problem Name Difficulty
0022-generate-parentheses undefined
0042-trapping-rain-water
0045-jump-game-ii
0053-maximum-subarray undefined
0055-jump-game
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0131-palindrome-partitioning undefined
0140-word-break-ii undefined
0152-maximum-product-subarray
0198-house-robber undefined
0213-house-robber-ii undefined
0377-combination-sum-iv undefined
0392-is-subsequence
0413-arithmetic-slices
0542-01-matrix undefined
0740-delete-and-earn undefined
0747-min-cost-climbing-stairs undefined
1020-longest-turbulent-subarray
1234-number-of-paths-with-max-score undefined
1381-maximum-score-words-formed-by-letters undefined
1586-longest-subarray-of-1s-after-deleting-one-element
2130-maximum-product-of-the-length-of-two-palindromic-subsequences undefined
2348-count-number-of-texts undefined
2397-count-number-of-ways-to-place-houses undefined
2562-count-ways-to-build-good-strings undefined
2696-the-number-of-beautiful-subsets undefined
2794-maximum-number-of-moves-in-a-grid undefined
3092-minimum-moves-to-spread-stones-over-grid undefined
3649-minimum-time-to-break-locks-i undefined
3852-path-existence-queries-in-a-graph-ii undefined
4062-house-robber-v undefined

Memoization

Problem Name Difficulty
0070-climbing-stairs
0140-word-break-ii undefined

Sorting

Problem Name Difficulty
0015-3sum
0056-merge-intervals undefined
0088-merge-sorted-array
0169-majority-element
0242-valid-anagram
0274-h-index
0594-longest-harmonious-subsequence
0658-find-k-closest-elements
1222-remove-covered-intervals undefined
1256-rank-transform-of-an-array undefined
1436-get-watched-videos-by-your-friends undefined
1966-frequency-of-the-most-frequent-element
2112-minimum-difference-between-highest-and-lowest-of-k-scores
2696-the-number-of-beautiful-subsets undefined
3852-path-existence-queries-in-a-graph-ii undefined
4071-word-squares-ii undefined

Tree

Problem Name Difficulty
0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree

Depth-First Search

Problem Name Difficulty
0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0130-surrounded-regions undefined
0200-number-of-islands undefined
0417-pacific-atlantic-water-flow undefined
0463-island-perimeter undefined
0547-number-of-provinces undefined
0695-max-area-of-island undefined
0733-flood-fill undefined
0813-all-paths-from-source-to-target undefined
0871-keys-and-rooms undefined
0971-shortest-bridge undefined
1073-number-of-enclaves undefined
1380-number-of-closed-islands undefined
1428-jump-game-iii undefined
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph undefined
1442-number-of-operations-to-make-network-connected undefined
2035-count-sub-islands undefined
2121-find-if-path-exists-in-graph undefined
2206-detonate-the-maximum-bombs undefined
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph undefined
2582-minimum-score-of-a-path-between-two-cities undefined
2793-count-the-number-of-complete-components undefined
3561-remove-methods-from-project undefined
3823-count-islands-with-total-value-divisible-by-k undefined
1000005-pond-sizes-lcci undefined
1000227-YesdPw undefined

Binary Tree

Problem Name Difficulty
0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree

Breadth-First Search

Problem Name Difficulty
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0130-surrounded-regions undefined
0200-number-of-islands undefined
0301-remove-invalid-parentheses undefined
0417-pacific-atlantic-water-flow undefined
0463-island-perimeter undefined
0542-01-matrix undefined
0547-number-of-provinces undefined
0695-max-area-of-island undefined
0733-flood-fill undefined
0813-all-paths-from-source-to-target undefined
0871-keys-and-rooms undefined
0971-shortest-bridge undefined
1036-rotting-oranges undefined
1073-number-of-enclaves undefined
1171-shortest-path-in-binary-matrix undefined
1380-number-of-closed-islands undefined
1428-jump-game-iii undefined
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph undefined
1436-get-watched-videos-by-your-friends undefined
1442-number-of-operations-to-make-network-connected undefined
1876-map-of-highest-peak undefined
2035-count-sub-islands undefined
2038-nearest-exit-from-entrance-in-maze undefined
2121-find-if-path-exists-in-graph undefined
2206-detonate-the-maximum-bombs undefined
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph undefined
2582-minimum-score-of-a-path-between-two-cities undefined
2793-count-the-number-of-complete-components undefined
3517-shortest-distance-after-road-addition-queries-i undefined
3561-remove-methods-from-project undefined
3649-minimum-time-to-break-locks-i undefined
3823-count-islands-with-total-value-divisible-by-k undefined
1000005-pond-sizes-lcci undefined
1000227-YesdPw undefined

Divide and Conquer

Problem Name Difficulty
0053-maximum-subarray undefined
0108-convert-sorted-array-to-binary-search-tree
0169-majority-element
0395-longest-substring-with-at-least-k-repeating-characters
1873-longest-nice-substring

Binary Search Tree

Problem Name Difficulty
0108-convert-sorted-array-to-binary-search-tree

Counting

Problem Name Difficulty
0169-majority-element
0383-ransom-note
0594-longest-harmonious-subsequence
1381-maximum-score-words-formed-by-letters undefined
1987-substrings-of-size-three-with-distinct-characters

Greedy

Problem Name Difficulty
0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy
1966-frequency-of-the-most-frequent-element
3852-path-existence-queries-in-a-graph-ii undefined

Counting Sort

Problem Name Difficulty
0274-h-index

Prefix Sum

Problem Name Difficulty
0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0560-subarray-sum-equals-k undefined
0713-subarray-product-less-than-k
0966-binary-subarrays-with-sum
1046-max-consecutive-ones-iii
1321-get-equal-substrings-within-budget
1370-count-number-of-nice-subarrays
1776-minimum-operations-to-reduce-x-to-zero
1966-frequency-of-the-most-frequent-element
4136-concatenate-non-zero-digits-and-multiply-by-sum-ii undefined

Monotonic Stack

Problem Name Difficulty
0042-trapping-rain-water

Trie

Problem Name Difficulty
0014-longest-common-prefix
0140-word-break-ii undefined

Sliding Window

Problem Name Difficulty
0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0076-minimum-window-substring undefined
0187-repeated-dna-sequences
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0239-sliding-window-maximum undefined
0395-longest-substring-with-at-least-k-repeating-characters
0413-arithmetic-slices
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0594-longest-harmonious-subsequence
0643-maximum-average-subarray-i
0658-find-k-closest-elements
0713-subarray-product-less-than-k
0966-binary-subarrays-with-sum
1020-longest-turbulent-subarray
1046-max-consecutive-ones-iii
1261-swap-for-longest-repeated-character-substring
1321-get-equal-substrings-within-budget
1351-replace-the-substring-for-balanced-string
1370-count-number-of-nice-subarrays
1430-find-the-k-beauty-of-a-number
1460-number-of-substrings-containing-all-three-characters
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element
1755-defuse-the-bomb
1776-minimum-operations-to-reduce-x-to-zero
1813-maximum-erasure-value
1873-longest-nice-substring
1966-frequency-of-the-most-frequent-element
1987-substrings-of-size-three-with-distinct-characters
2112-minimum-difference-between-highest-and-lowest-of-k-scores
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2866-longest-even-odd-subarray-with-threshold
3349-maximum-length-substring-with-two-occurrences

Rolling Hash

Problem Name Difficulty
0187-repeated-dna-sequences

Hash Function

Problem Name Difficulty
0187-repeated-dna-sequences

Heap (Priority Queue)

Problem Name Difficulty
0239-sliding-window-maximum undefined
0658-find-k-closest-elements
3217-number-of-possible-sets-of-closing-branches undefined

Matrix

Problem Name Difficulty
0036-valid-sudoku
0054-spiral-matrix
0073-set-matrix-zeroes undefined
0130-surrounded-regions undefined
0200-number-of-islands undefined
0417-pacific-atlantic-water-flow undefined
0463-island-perimeter undefined
0542-01-matrix undefined
0695-max-area-of-island undefined
0733-flood-fill undefined
0928-surface-area-of-3d-shapes undefined
0971-shortest-bridge undefined
1036-rotting-oranges undefined
1073-number-of-enclaves undefined
1171-shortest-path-in-binary-matrix undefined
1234-number-of-paths-with-max-score undefined
1380-number-of-closed-islands undefined
1876-map-of-highest-peak undefined
2035-count-sub-islands undefined
2038-nearest-exit-from-entrance-in-maze undefined
2482-maximum-rows-covered-by-columns undefined
2794-maximum-number-of-moves-in-a-grid undefined
3092-minimum-moves-to-spread-stones-over-grid undefined
3823-count-islands-with-total-value-divisible-by-k undefined
1000005-pond-sizes-lcci undefined
1000227-YesdPw undefined

Backtracking

Problem Name Difficulty
0022-generate-parentheses undefined
0039-combination-sum undefined
0046-permutations undefined
0051-n-queens undefined
0077-combinations undefined
0090-subsets-ii undefined
0093-restore-ip-addresses undefined
0131-palindrome-partitioning undefined
0140-word-break-ii undefined
0216-combination-sum-iii undefined
0301-remove-invalid-parentheses undefined
0813-all-paths-from-source-to-target undefined
1211-iterator-for-combination undefined
1360-maximum-length-of-a-concatenated-string-with-unique-characters undefined
1381-maximum-score-words-formed-by-letters undefined
1715-split-a-string-into-the-max-number-of-unique-substrings undefined
1723-maximum-number-of-achievable-transfer-requests undefined
1976-splitting-a-string-into-descending-consecutive-values undefined
2130-maximum-product-of-the-length-of-two-palindromic-subsequences undefined
2482-maximum-rows-covered-by-columns undefined
2696-the-number-of-beautiful-subsets undefined
2802-find-the-punishment-number-of-an-integer undefined
3092-minimum-moves-to-spread-stones-over-grid undefined
3649-minimum-time-to-break-locks-i undefined
4071-word-squares-ii undefined
1000434-UEcfPD undefined

Enumeration

Problem Name Difficulty
1723-maximum-number-of-achievable-transfer-requests undefined
1976-splitting-a-string-into-descending-consecutive-values undefined
2482-maximum-rows-covered-by-columns undefined
3217-number-of-possible-sets-of-closing-branches undefined
4071-word-squares-ii undefined
1000434-UEcfPD undefined

Bitmask

Problem Name Difficulty
1381-maximum-score-words-formed-by-letters undefined
2130-maximum-product-of-the-length-of-two-palindromic-subsequences undefined
3092-minimum-moves-to-spread-stones-over-grid undefined
3649-minimum-time-to-break-locks-i undefined

Combinatorics

Problem Name Difficulty
2696-the-number-of-beautiful-subsets undefined

Graph

Problem Name Difficulty
0547-number-of-provinces undefined
0813-all-paths-from-source-to-target undefined
0871-keys-and-rooms undefined
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph undefined
1436-get-watched-videos-by-your-friends undefined
1442-number-of-operations-to-make-network-connected undefined
2121-find-if-path-exists-in-graph undefined
2206-detonate-the-maximum-bombs undefined
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph undefined
2582-minimum-score-of-a-path-between-two-cities undefined
2793-count-the-number-of-complete-components undefined
3217-number-of-possible-sets-of-closing-branches undefined
3517-shortest-distance-after-road-addition-queries-i undefined
3561-remove-methods-from-project undefined
3838-path-existence-queries-in-a-graph-i undefined
3852-path-existence-queries-in-a-graph-ii undefined

Shortest Path

Problem Name Difficulty
3217-number-of-possible-sets-of-closing-branches undefined

Design

Problem Name Difficulty
1211-iterator-for-combination undefined

Iterator

Problem Name Difficulty
1211-iterator-for-combination undefined

Union Find

Problem Name Difficulty
0130-surrounded-regions undefined
0200-number-of-islands undefined
0547-number-of-provinces undefined
0695-max-area-of-island undefined
1073-number-of-enclaves undefined
1380-number-of-closed-islands undefined
1442-number-of-operations-to-make-network-connected undefined
2035-count-sub-islands undefined
2121-find-if-path-exists-in-graph undefined
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph undefined
2582-minimum-score-of-a-path-between-two-cities undefined
2793-count-the-number-of-complete-components undefined
3823-count-islands-with-total-value-divisible-by-k undefined
3838-path-existence-queries-in-a-graph-i undefined
1000005-pond-sizes-lcci undefined
1000227-YesdPw undefined

Geometry

Problem Name Difficulty
0928-surface-area-of-3d-shapes undefined
2206-detonate-the-maximum-bombs undefined

Queue

Problem Name Difficulty
0239-sliding-window-maximum undefined

Monotonic Queue

Problem Name Difficulty
0239-sliding-window-maximum undefined

Topological Sort

Problem Name Difficulty
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph undefined

About

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages