Skip to content

About

Nebula of various algorithmic tasks.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

1,758 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

algorithm-nebula

Nebula of various algorithmic tasks.

Structure

  • The algorithms package contains implementations of the most popular computer science algorithms
  • The problems package contains solutions to various algorithmic problems
  • The structures package contains implementations of the most popular data structures

Array

0026-remove-duplicates-from-sorted-array
0027-remove-element
0055-jump-game
0056-merge-intervals
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0169-majority-element
0189-rotate-array
0274-h-index
0380-insert-delete-getrandom-o1

Sorting

0056-merge-intervals
0088-merge-sorted-array
0169-majority-element
0274-h-index

Two Pointers

0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0189-rotate-array

Linked List

0019-remove-nth-node-from-end-of-list

Hash Table

0169-majority-element
0380-insert-delete-getrandom-o1

Divide and Conquer

0169-majority-element

Counting

0169-majority-element

Math

0189-rotate-array
0380-insert-delete-getrandom-o1

Dynamic Programming

0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii

Greedy

0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii

Counting Sort

0274-h-index

Design

0380-insert-delete-getrandom-o1

Randomized

0380-insert-delete-getrandom-o1

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0036-valid-sudoku
0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0042-trapping-rain-water
0045-jump-game-ii
0046-permutations
0047-permutations-ii
0049-group-anagrams
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0057-insert-interval
0066-plus-one
0068-text-justification
0074-search-a-2d-matrix
0078-subsets
0080-remove-duplicates-from-sorted-array-ii
0084-largest-rectangle-in-histogram
0088-merge-sorted-array
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0134-gas-station
0135-candy
0136-single-number
0139-word-break
0140-word-break-ii
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0198-house-robber
0200-number-of-islands
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0216-combination-sum-iii
0217-contains-duplicate
0238-product-of-array-except-self
0239-sliding-window-maximum
0274-h-index
0283-move-zeroes
0287-find-the-duplicate-number
0322-coin-change
0334-increasing-triplet-subsequence
0347-top-k-frequent-elements
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0380-insert-delete-getrandom-o1
0381-insert-delete-getrandom-o1-duplicates-allowed
0399-evaluate-division
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0494-target-sum
0500-keyboard-row
0560-subarray-sum-equals-k
0605-can-place-flowers
0621-task-scheduler
0643-maximum-average-subarray-i
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0721-accounts-merge
0724-find-pivot-index
0735-asteroid-collision
0739-daily-temperatures
0747-min-cost-climbing-stairs
0792-binary-search
0833-bus-routes
0870-magic-squares-in-grid
0883-car-fleet
0890-lemonade-change
0907-koko-eating-bananas
1014-k-closest-points-to-origin
1036-rotting-oranges
1046-max-consecutive-ones-iii
1112-find-words-that-can-be-formed-by-characters
1127-last-stone-weight
1241-decompress-run-length-encoded-list
1256-rank-transform-of-an-array
1293-three-consecutive-odds
1319-unique-number-of-occurrences
1382-calculate-amount-paid-in-taxes
1392-find-the-difference-of-two-arrays
1397-search-suggestions-system
1414-shortest-path-in-a-grid-with-obstacles-elimination
1496-lucky-numbers-in-a-matrix
1528-kids-with-the-greatest-number-of-candies
1586-longest-subarray-of-1s-after-deleting-one-element
1720-crawler-log-folder
1798-max-number-of-k-sum-pairs
1833-find-the-highest-altitude
2038-nearest-exit-from-entrance-in-maze
2123-the-number-of-weak-characters-in-the-game
2160-minimum-operations-to-make-a-uni-value-grid
2169-simple-bank-system
2237-longest-palindrome-by-concatenating-two-letter-words
2392-successful-pairs-of-spells-and-potions
2394-count-subarrays-with-score-less-than-k
2428-equal-row-and-column-pairs
2553-total-cost-to-hire-k-workers
2636-maximum-subsequence-score
3213-count-subarrays-where-max-element-appears-at-least-k-times
3356-shortest-uncommon-substring-in-an-array

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0030-substring-with-concatenation-of-all-words
0036-valid-sudoku
0037-sudoku-solver
0049-group-anagrams
0076-minimum-window-substring
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0139-word-break
0140-word-break-ii
0141-linked-list-cycle
0146-lru-cache
0160-intersection-of-two-linked-lists
0169-majority-element
0202-happy-number
0208-implement-trie-prefix-tree
0217-contains-duplicate
0242-valid-anagram
0290-word-pattern
0347-top-k-frequent-elements
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0355-design-twitter
0380-insert-delete-getrandom-o1
0381-insert-delete-getrandom-o1-duplicates-allowed
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0500-keyboard-row
0560-subarray-sum-equals-k
0567-permutation-in-string
0621-task-scheduler
0721-accounts-merge
0778-reorganize-string
0833-bus-routes
0870-magic-squares-in-grid
1023-time-based-key-value-store
1112-find-words-that-can-be-formed-by-characters
1256-rank-transform-of-an-array
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1777-determine-if-two-strings-are-close
1798-max-number-of-k-sum-pairs
1905-design-authentication-manager
2169-simple-bank-system
2237-longest-palindrome-by-concatenating-two-letter-words
2413-smallest-number-in-infinite-set
2428-equal-row-and-column-pairs
3356-shortest-uncommon-substring-in-an-array

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
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
0143-reorder-list
0151-reverse-words-in-a-string
0160-intersection-of-two-linked-lists
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0283-move-zeroes
0287-find-the-duplicate-number
0295-find-median-from-data-stream
0345-reverse-vowels-of-a-string
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0392-is-subsequence
0443-string-compression
0567-permutation-in-string
0680-valid-palindrome-ii
1454-remove-palindromic-subsequences
1798-max-number-of-k-sum-pairs
1894-merge-strings-alternately
2216-delete-the-middle-node-of-a-linked-list
2236-maximum-twin-sum-of-a-linked-list
2392-successful-pairs-of-spells-and-potions
2553-total-cost-to-hire-k-workers

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0069-sqrtx
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0287-find-the-duplicate-number
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0374-guess-number-higher-or-lower
0792-binary-search
0907-koko-eating-bananas
1023-time-based-key-value-store
1046-max-consecutive-ones-iii
1397-search-suggestions-system
2392-successful-pairs-of-spells-and-potions
2394-count-subarrays-with-score-less-than-k

Sorting

0015-3sum
0047-permutations-ii
0049-group-anagrams
0056-merge-intervals
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0242-valid-anagram
0274-h-index
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0621-task-scheduler
0721-accounts-merge
0778-reorganize-string
0883-car-fleet
1014-k-closest-points-to-origin
1256-rank-transform-of-an-array
1397-search-suggestions-system
1777-determine-if-two-strings-are-close
1798-max-number-of-k-sum-pairs
2123-the-number-of-weak-characters-in-the-game
2160-minimum-operations-to-make-a-uni-value-grid
2392-successful-pairs-of-spells-and-potions
2636-maximum-subsequence-score

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0006-zigzag-conversion
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0038-count-and-say
0049-group-anagrams
0058-length-of-last-word
0068-text-justification
0072-edit-distance
0076-minimum-window-substring
0125-valid-palindrome
0139-word-break
0140-word-break-ii
0151-reverse-words-in-a-string
0208-implement-trie-prefix-tree
0224-basic-calculator
0227-basic-calculator-ii
0242-valid-anagram
0290-word-pattern
0297-serialize-and-deserialize-binary-tree
0345-reverse-vowels-of-a-string
0392-is-subsequence
0394-decode-string
0399-evaluate-division
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0443-string-compression
0500-keyboard-row
0567-permutation-in-string
0649-dota2-senate
0657-robot-return-to-origin
0680-valid-palindrome-ii
0721-accounts-merge
0778-reorganize-string
1023-time-based-key-value-store
1026-string-without-aaa-or-bbb
1112-find-words-that-can-be-formed-by-characters
1146-greatest-common-divisor-of-strings
1250-longest-common-subsequence
1341-split-a-string-in-balanced-strings
1371-minimum-remove-to-make-valid-parentheses
1397-search-suggestions-system
1454-remove-palindromic-subsequences
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1720-crawler-log-folder
1777-determine-if-two-strings-are-close
1894-merge-strings-alternately
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2237-longest-palindrome-by-concatenating-two-letter-words
2304-cells-in-a-range-on-an-excel-sheet
2470-removing-stars-from-a-string
2580-circular-sentence
3356-shortest-uncommon-substring-in-an-array
3451-string-compression-iii

Stack

0020-valid-parentheses
0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0143-reorder-list
0150-evaluate-reverse-polish-notation
0155-min-stack
0224-basic-calculator
0227-basic-calculator-ii
0232-implement-queue-using-stacks
0341-flatten-nested-list-iterator
0394-decode-string
0735-asteroid-collision
0739-daily-temperatures
0883-car-fleet
0937-online-stock-span
1371-minimum-remove-to-make-valid-parentheses
1720-crawler-log-folder
2123-the-number-of-weak-characters-in-the-game
2236-maximum-twin-sum-of-a-linked-list
2470-removing-stars-from-a-string

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0560-subarray-sum-equals-k
0724-find-pivot-index
1046-max-consecutive-ones-iii
1833-find-the-highest-altitude
2394-count-subarrays-with-score-less-than-k

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0025-reverse-nodes-in-k-group
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0146-lru-cache
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0328-odd-even-linked-list
0355-design-twitter
1905-design-authentication-manager
2216-delete-the-middle-node-of-a-linked-list
2236-maximum-twin-sum-of-a-linked-list

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0050-powx-n
0062-unique-paths
0066-plus-one
0069-sqrtx
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0189-rotate-array
0202-happy-number
0224-basic-calculator
0227-basic-calculator-ii
0380-insert-delete-getrandom-o1
0381-insert-delete-getrandom-o1-duplicates-allowed
0870-magic-squares-in-grid
1014-k-closest-points-to-origin
1146-greatest-common-divisor-of-strings
1236-n-th-tribonacci-number
2160-minimum-operations-to-make-a-uni-value-grid
2850-construct-the-longest-new-string

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0050-powx-n
0143-reorder-list
0206-reverse-linked-list
0224-basic-calculator
0394-decode-string

Matrix

0036-valid-sudoku
0037-sudoku-solver
0054-spiral-matrix
0074-search-a-2d-matrix
0200-number-of-islands
0870-magic-squares-in-grid
1036-rotting-oranges
1414-shortest-path-in-a-grid-with-obstacles-elimination
1496-lucky-numbers-in-a-matrix
2038-nearest-exit-from-entrance-in-maze
2160-minimum-operations-to-make-a-uni-value-grid
2428-equal-row-and-column-pairs

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands
0399-evaluate-division
0547-number-of-provinces
0721-accounts-merge

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0169-majority-element
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0355-design-twitter
0621-task-scheduler
0778-reorganize-string
0789-kth-largest-element-in-a-stream
1014-k-closest-points-to-origin
1127-last-stone-weight
1397-search-suggestions-system
2413-smallest-number-in-infinite-set
2553-total-cost-to-hire-k-workers
2636-maximum-subsequence-score

Bucket Sort

0347-top-k-frequent-elements

Counting

0169-majority-element
0347-top-k-frequent-elements
0621-task-scheduler
0778-reorganize-string
1112-find-words-that-can-be-formed-by-characters
1341-split-a-string-in-balanced-strings
1777-determine-if-two-strings-are-close
2237-longest-palindrome-by-concatenating-two-letter-words

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Greedy

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
0334-increasing-triplet-subsequence
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0605-can-place-flowers
0621-task-scheduler
0649-dota2-senate
0680-valid-palindrome-ii
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0778-reorganize-string
0890-lemonade-change
1026-string-without-aaa-or-bbb
1341-split-a-string-in-balanced-strings
2123-the-number-of-weak-characters-in-the-game
2237-longest-palindrome-by-concatenating-two-letter-words
2636-maximum-subsequence-score
2850-construct-the-longest-new-string

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0045-jump-game-ii
0055-jump-game
0062-unique-paths
0070-climbing-stairs
0072-edit-distance
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0124-binary-tree-maximum-path-sum
0139-word-break
0140-word-break-ii
0198-house-robber
0322-coin-change
0338-counting-bits
0392-is-subsequence
0435-non-overlapping-intervals
0494-target-sum
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0747-min-cost-climbing-stairs
0806-domino-and-tromino-tiling
1236-n-th-tribonacci-number
1250-longest-common-subsequence
1474-longest-zigzag-path-in-a-binary-tree
1586-longest-subarray-of-1s-after-deleting-one-element
2850-construct-the-longest-new-string

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0739-daily-temperatures
0883-car-fleet
0937-online-stock-span
2123-the-number-of-weak-characters-in-the-game

Sliding Window

0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0076-minimum-window-substring
0209-minimum-size-subarray-sum
0239-sliding-window-maximum
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0567-permutation-in-string
0643-maximum-average-subarray-i
1046-max-consecutive-ones-iii
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element
2394-count-subarrays-with-score-less-than-k
3213-count-subarrays-where-max-element-appears-at-least-k-times

Database

0175-combine-two-tables

Queue

0232-implement-queue-using-stacks
0239-sliding-window-maximum
0341-flatten-nested-list-iterator
0649-dota2-senate
0969-number-of-recent-calls

Monotonic Queue

0239-sliding-window-maximum

Design

0146-lru-cache
0155-min-stack
0208-implement-trie-prefix-tree
0232-implement-queue-using-stacks
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0341-flatten-nested-list-iterator
0355-design-twitter
0380-insert-delete-getrandom-o1
0381-insert-delete-getrandom-o1-duplicates-allowed
0789-kth-largest-element-in-a-stream
0937-online-stock-span
0969-number-of-recent-calls
1023-time-based-key-value-store
1905-design-authentication-manager
2169-simple-bank-system
2413-smallest-number-in-infinite-set

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0046-permutations
0047-permutations-ii
0078-subsets
0140-word-break-ii
0216-combination-sum-iii
0494-target-sum

Bit Manipulation

0078-subsets
0136-single-number
0287-find-the-duplicate-number
0338-counting-bits
1441-minimum-flips-to-make-a-or-b-equal-to-c

Doubly-Linked List

0146-lru-cache
1905-design-authentication-manager

Merge Sort

0023-merge-k-sorted-lists

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0099-recover-binary-search-tree
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0341-flatten-nested-list-iterator
0437-path-sum-iii
0450-delete-node-in-a-bst
0513-find-bottom-left-tree-value
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0617-merge-two-binary-trees
0783-search-in-a-binary-search-tree
0784-insert-into-a-binary-search-tree
0789-kth-largest-element-in-a-stream
0904-leaf-similar-trees
1005-univalued-binary-tree
1114-binary-search-tree-to-greater-sum-tree
1116-maximum-level-sum-of-a-binary-tree
1474-longest-zigzag-path-in-a-binary-tree
1544-count-good-nodes-in-binary-tree
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0099-recover-binary-search-tree
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0199-binary-tree-right-side-view
0200-number-of-islands
0210-course-schedule-ii
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0332-reconstruct-itinerary
0341-flatten-nested-list-iterator
0399-evaluate-division
0437-path-sum-iii
0513-find-bottom-left-tree-value
0543-diameter-of-binary-tree
0547-number-of-provinces
0572-subtree-of-another-tree
0617-merge-two-binary-trees
0721-accounts-merge
0871-keys-and-rooms
0904-leaf-similar-trees
1005-univalued-binary-tree
1114-binary-search-tree-to-greater-sum-tree
1116-maximum-level-sum-of-a-binary-tree
1474-longest-zigzag-path-in-a-binary-tree
1544-count-good-nodes-in-binary-tree
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0200-number-of-islands
0210-course-schedule-ii
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0322-coin-change
0399-evaluate-division
0513-find-bottom-left-tree-value
0547-number-of-provinces
0617-merge-two-binary-trees
0721-accounts-merge
0833-bus-routes
0871-keys-and-rooms
1005-univalued-binary-tree
1036-rotting-oranges
1116-maximum-level-sum-of-a-binary-tree
1414-shortest-path-in-a-grid-with-obstacles-elimination
1544-count-good-nodes-in-binary-tree
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
2038-nearest-exit-from-entrance-in-maze

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0099-recover-binary-search-tree
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0437-path-sum-iii
0450-delete-node-in-a-bst
0513-find-bottom-left-tree-value
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0617-merge-two-binary-trees
0783-search-in-a-binary-search-tree
0784-insert-into-a-binary-search-tree
0789-kth-largest-element-in-a-stream
0904-leaf-similar-trees
1005-univalued-binary-tree
1114-binary-search-tree-to-greater-sum-tree
1116-maximum-level-sum-of-a-binary-tree
1474-longest-zigzag-path-in-a-binary-tree
1544-count-good-nodes-in-binary-tree
2217-step-by-step-directions-from-a-binary-tree-node-to-another

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Binary Search Tree

0098-validate-binary-search-tree
0099-recover-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0783-search-in-a-binary-search-tree
0784-insert-into-a-binary-search-tree
0789-kth-largest-element-in-a-stream
1114-binary-search-tree-to-greater-sum-tree

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream
0937-online-stock-span
0969-number-of-recent-calls

Geometry

1014-k-closest-points-to-origin

Simulation

0054-spiral-matrix
0068-text-justification
0657-robot-return-to-origin
0735-asteroid-collision
1382-calculate-amount-paid-in-taxes
2169-simple-bank-system
2428-equal-row-and-column-pairs
2470-removing-stars-from-a-string
2553-total-cost-to-hire-k-workers

Graph

0210-course-schedule-ii
0332-reconstruct-itinerary
0399-evaluate-division
0547-number-of-provinces
0871-keys-and-rooms
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero

Interactive

0374-guess-number-higher-or-lower

Ordered Set

2413-smallest-number-in-infinite-set

Shortest Path

0399-evaluate-division

Memoization

0070-climbing-stairs
0139-word-break
0140-word-break-ii
1236-n-th-tribonacci-number

Combinatorics

0062-unique-paths

Trie

0139-word-break
0140-word-break-ii
0208-implement-trie-prefix-tree
1397-search-suggestions-system
3356-shortest-uncommon-substring-in-an-array

Counting Sort

0274-h-index

Randomized

0380-insert-delete-getrandom-o1
0381-insert-delete-getrandom-o1-duplicates-allowed

Brainteaser

2850-construct-the-longest-new-string

Eulerian Circuit

0332-reconstruct-itinerary

Topological Sort

0210-course-schedule-ii

Iterator

0341-flatten-nested-list-iterator

About

Nebula of various algorithmic tasks.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages