Skip to content

ChangmooMoon/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

String

0013-roman-to-integer
0020-valid-parentheses
0038-count-and-say
0214-shortest-palindrome
0539-minimum-time-difference
0812-rotate-string
0857-positions-of-large-groups
0962-flip-string-to-monotone-increasing
1250-longest-common-subsequence
1351-replace-the-substring-for-balanced-string
1430-find-the-k-beauty-of-a-number
1532-reformat-the-string
1632-number-of-good-ways-to-split-a-string
1756-minimum-deletions-to-make-string-balanced
1904-second-largest-digit-in-a-string
1915-check-if-one-string-swap-can-make-strings-equal
2115-number-of-unique-good-subsequences
2134-maximize-the-confusion-of-an-exam
2326-sum-of-scores-of-built-strings
2361-calculate-digit-sum-of-a-string
2465-shifting-letters-ii
2700-substring-xor-queries

Simulation

1310-watering-plants
1324-where-will-the-ball-fall
2048-build-array-from-permutation
2361-calculate-digit-sum-of-a-string
2585-delete-greatest-value-in-each-row
2846-robot-collisions

Array

0048-rotate-image
0051-n-queens
0119-pascals-triangle-ii
0167-two-sum-ii-input-array-is-sorted
0238-product-of-array-except-self
0368-largest-divisible-subset
0485-max-consecutive-ones
0523-continuous-subarray-sum
0539-minimum-time-difference
0561-array-partition
0645-set-mismatch
0780-max-chunks-to-make-sorted
0802-k-th-smallest-prime-fraction
0817-design-hashmap
0821-bricks-falling-when-hit
0932-monotonic-array
0941-sort-array-by-parity
0945-snakes-and-ladders
0948-sort-an-array
1014-k-closest-points-to-origin
1096-maximum-sum-of-two-non-overlapping-subarrays
1111-minimum-score-triangulation-of-polygon
1171-shortest-path-in-binary-matrix
1310-watering-plants
1324-where-will-the-ball-fall
1550-find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1808-stone-game-vii
1866-restore-the-array-from-adjacent-pairs
2048-build-array-from-permutation
2188-minimized-maximum-of-products-distributed-to-any-store
2199-two-furthest-houses-with-different-colors
2465-shifting-letters-ii
2480-find-subarrays-with-equal-sum
2488-divide-intervals-into-minimum-number-of-groups
2538-minimum-cost-to-make-array-equal
2545-height-of-binary-tree-after-subtree-removal-queries
2585-delete-greatest-value-in-each-row
2700-substring-xor-queries
2764-maximum-number-of-fish-in-a-grid
2846-robot-collisions
3525-maximum-energy-boost-from-two-drinks
3535-find-the-count-of-monotonic-pairs-i

Hash Table

0013-roman-to-integer
0523-continuous-subarray-sum
0645-set-mismatch
0817-design-hashmap
1632-number-of-good-ways-to-split-a-string
1866-restore-the-array-from-adjacent-pairs
1904-second-largest-digit-in-a-string
1915-check-if-one-string-swap-can-make-strings-equal
2480-find-subarrays-with-equal-sum
2700-substring-xor-queries

Two Pointers

0167-two-sum-ii-input-array-is-sorted
0802-k-th-smallest-prime-fraction
0941-sort-array-by-parity
1679-shortest-subarray-to-be-removed-to-make-array-sorted
2488-divide-intervals-into-minimum-number-of-groups

Binary Search

0167-two-sum-ii-input-array-is-sorted
0802-k-th-smallest-prime-fraction
1550-find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
1679-shortest-subarray-to-be-removed-to-make-array-sorted
2134-maximize-the-confusion-of-an-exam
2188-minimized-maximum-of-products-distributed-to-any-store
2326-sum-of-scores-of-built-strings
2538-minimum-cost-to-make-array-equal

Sorting

0368-largest-divisible-subset
0539-minimum-time-difference
0561-array-partition
0645-set-mismatch
0780-max-chunks-to-make-sorted
0802-k-th-smallest-prime-fraction
0941-sort-array-by-parity
0948-sort-an-array
1014-k-closest-points-to-origin
2488-divide-intervals-into-minimum-number-of-groups
2538-minimum-cost-to-make-array-equal
2585-delete-greatest-value-in-each-row
2846-robot-collisions

Heap (Priority Queue)

0802-k-th-smallest-prime-fraction
0948-sort-an-array
1014-k-closest-points-to-origin
1550-find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
2488-divide-intervals-into-minimum-number-of-groups
2585-delete-greatest-value-in-each-row
2678-design-graph-with-shortest-path-calculator

Greedy

0561-array-partition
0780-max-chunks-to-make-sorted
2188-minimized-maximum-of-products-distributed-to-any-store
2199-two-furthest-houses-with-different-colors
2488-divide-intervals-into-minimum-number-of-groups
2538-minimum-cost-to-make-array-equal

Prefix Sum

0238-product-of-array-except-self
0523-continuous-subarray-sum
2134-maximize-the-confusion-of-an-exam
2465-shifting-letters-ii
2488-divide-intervals-into-minimum-number-of-groups
2538-minimum-cost-to-make-array-equal
3535-find-the-count-of-monotonic-pairs-i

Union Find

0821-bricks-falling-when-hit
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
2764-maximum-number-of-fish-in-a-grid

Graph

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1493-frog-position-after-t-seconds
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
2678-design-graph-with-shortest-path-calculator

Math

0013-roman-to-integer
0048-rotate-image
0070-climbing-stairs
0368-largest-divisible-subset
0405-convert-a-number-to-hexadecimal
0523-continuous-subarray-sum
0539-minimum-time-difference
1014-k-closest-points-to-origin
1430-find-the-k-beauty-of-a-number
1808-stone-game-vii
3535-find-the-count-of-monotonic-pairs-i

Dynamic Programming

0070-climbing-stairs
0119-pascals-triangle-ii
0368-largest-divisible-subset
0962-flip-string-to-monotone-increasing
0972-knight-dialer
1008-binary-tree-cameras
1096-maximum-sum-of-two-non-overlapping-subarrays
1111-minimum-score-triangulation-of-polygon
1250-longest-common-subsequence
1632-number-of-good-ways-to-split-a-string
1756-minimum-deletions-to-make-string-balanced
1808-stone-game-vii
2115-number-of-unique-good-subsequences
3525-maximum-energy-boost-from-two-drinks
3535-find-the-count-of-monotonic-pairs-i

Game Theory

1808-stone-game-vii

Matrix

0048-rotate-image
0821-bricks-falling-when-hit
0945-snakes-and-ladders
1171-shortest-path-in-binary-matrix
1324-where-will-the-ball-fall
1550-find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
2585-delete-greatest-value-in-each-row
2764-maximum-number-of-fish-in-a-grid

Linked List

0021-merge-two-sorted-lists
0766-flatten-a-multilevel-doubly-linked-list
0817-design-hashmap

Recursion

0021-merge-two-sorted-lists

Tree

0102-binary-tree-level-order-traversal
0111-minimum-depth-of-binary-tree
0513-find-bottom-left-tree-value
1008-binary-tree-cameras
1493-frog-position-after-t-seconds
2545-height-of-binary-tree-after-subtree-removal-queries

Depth-First Search

0111-minimum-depth-of-binary-tree
0513-find-bottom-left-tree-value
0766-flatten-a-multilevel-doubly-linked-list
1008-binary-tree-cameras
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1493-frog-position-after-t-seconds
2545-height-of-binary-tree-after-subtree-removal-queries
2764-maximum-number-of-fish-in-a-grid

Breadth-First Search

0102-binary-tree-level-order-traversal
0111-minimum-depth-of-binary-tree
0513-find-bottom-left-tree-value
0945-snakes-and-ladders
1171-shortest-path-in-binary-matrix
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1493-frog-position-after-t-seconds
2545-height-of-binary-tree-after-subtree-removal-queries
2764-maximum-number-of-fish-in-a-grid

Binary Tree

0102-binary-tree-level-order-traversal
0111-minimum-depth-of-binary-tree
0513-find-bottom-left-tree-value
1008-binary-tree-cameras
2545-height-of-binary-tree-after-subtree-removal-queries

Stack

0020-valid-parentheses
0780-max-chunks-to-make-sorted
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1756-minimum-deletions-to-make-string-balanced
2846-robot-collisions

Monotonic Stack

0780-max-chunks-to-make-sorted
1679-shortest-subarray-to-be-removed-to-make-array-sorted

Divide and Conquer

0948-sort-an-array
1014-k-closest-points-to-origin

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0561-array-partition
0948-sort-an-array
1915-check-if-one-string-swap-can-make-strings-equal

Geometry

1014-k-closest-points-to-origin

Quickselect

1014-k-closest-points-to-origin

Design

0817-design-hashmap
2678-design-graph-with-shortest-path-calculator

Hash Function

0214-shortest-palindrome
0817-design-hashmap
2326-sum-of-scores-of-built-strings

Doubly-Linked List

0766-flatten-a-multilevel-doubly-linked-list

Backtracking

0051-n-queens
0077-combinations

String Matching

0214-shortest-palindrome
0812-rotate-string
2326-sum-of-scores-of-built-strings

Combinatorics

3535-find-the-count-of-monotonic-pairs-i

Bit Manipulation

0405-convert-a-number-to-hexadecimal
0645-set-mismatch
1632-number-of-good-ways-to-split-a-string
2700-substring-xor-queries

Memoization

0070-climbing-stairs

Rolling Hash

0214-shortest-palindrome
2326-sum-of-scores-of-built-strings

Suffix Array

2326-sum-of-scores-of-built-strings

Sliding Window

1096-maximum-sum-of-two-non-overlapping-subarrays
1351-replace-the-substring-for-balanced-string
1430-find-the-k-beauty-of-a-number
2134-maximize-the-confusion-of-an-exam

Topological Sort

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Shortest Path

2678-design-graph-with-shortest-path-calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages