Skip to content

Latest commit

 

History

History
306 lines (306 loc) · 23.8 KB

README.md

File metadata and controls

306 lines (306 loc) · 23.8 KB

leetcode

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0039-combination-sum
0074-search-a-2d-matrix
0121-best-time-to-buy-and-sell-stock
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0169-majority-element
0221-maximal-square
0274-h-index
0275-h-index-ii
0283-move-zeroes
0300-longest-increasing-subsequence
0354-russian-doll-envelopes
0410-split-array-largest-sum
0436-find-right-interval
0540-single-element-in-a-sorted-array
0611-valid-triangle-number
0658-find-k-closest-elements
0733-flood-fill
0745-find-smallest-letter-greater-than-target
0786-search-in-a-sorted-array-of-unknown-size
0792-binary-search
0882-peak-index-in-a-mountain-array
0907-koko-eating-bananas
0912-random-pick-with-weight
1056-capacity-to-ship-packages-within-d-days
1083-two-sum-less-than-k
1137-height-checker
1192-divide-chocolate
1249-snapshot-array
1352-maximum-profit-in-job-scheduling
1402-count-square-submatrices-with-all-ones
1476-count-negative-numbers-in-a-sorted-matrix
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1646-kth-missing-positive-number
1672-find-the-index-of-the-large-integer
1753-path-with-minimum-effort
2000-minimum-speed-to-arrive-on-time
2392-successful-pairs-of-spells-and-potions
2876-number-of-employees-who-met-the-target

Sorting

0169-majority-element
0242-valid-anagram
0274-h-index
0354-russian-doll-envelopes
0436-find-right-interval
0611-valid-triangle-number
0658-find-k-closest-elements
1083-two-sum-less-than-k
1137-height-checker
1352-maximum-profit-in-job-scheduling
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
2392-successful-pairs-of-spells-and-potions

Counting Sort

0169-majority-element
0274-h-index
0383-ransom-note
1137-height-checker
1469-minimum-number-of-steps-to-make-two-strings-anagram

Hash Table

0001-two-sum
0141-linked-list-cycle
0169-majority-element
0242-valid-anagram
0383-ransom-note
0409-longest-palindrome
1023-time-based-key-value-store
1249-snapshot-array
1469-minimum-number-of-steps-to-make-two-strings-anagram

String

0020-valid-parentheses
0022-generate-parentheses
0067-add-binary
0125-valid-palindrome
0242-valid-anagram
0383-ransom-note
0409-longest-palindrome
1023-time-based-key-value-store
1469-minimum-number-of-steps-to-make-two-strings-anagram

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
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0275-h-index-ii
0278-first-bad-version
0300-longest-increasing-subsequence
0354-russian-doll-envelopes
0367-valid-perfect-square
0374-guess-number-higher-or-lower
0410-split-array-largest-sum
0436-find-right-interval
0441-arranging-coins
0540-single-element-in-a-sorted-array
0611-valid-triangle-number
0658-find-k-closest-elements
0745-find-smallest-letter-greater-than-target
0786-search-in-a-sorted-array-of-unknown-size
0792-binary-search
0882-peak-index-in-a-mountain-array
0907-koko-eating-bananas
0912-random-pick-with-weight
1023-time-based-key-value-store
1056-capacity-to-ship-packages-within-d-days
1083-two-sum-less-than-k
1192-divide-chocolate
1249-snapshot-array
1352-maximum-profit-in-job-scheduling
1476-count-negative-numbers-in-a-sorted-matrix
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1646-kth-missing-positive-number
1672-find-the-index-of-the-large-integer
1753-path-with-minimum-effort
1929-maximum-value-at-a-given-index-in-a-bounded-array
2000-minimum-speed-to-arrive-on-time
2392-successful-pairs-of-spells-and-potions

Matrix

0074-search-a-2d-matrix
0221-maximal-square
0733-flood-fill
1402-count-square-submatrices-with-all-ones
1476-count-negative-numbers-in-a-sorted-matrix
1753-path-with-minimum-effort

Design

0232-implement-queue-using-stacks
1023-time-based-key-value-store
1249-snapshot-array

Interactive

0278-first-bad-version
0374-guess-number-higher-or-lower
0786-search-in-a-sorted-array-of-unknown-size
1672-find-the-index-of-the-large-integer

Math

0050-powx-n
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0367-valid-perfect-square
0441-arranging-coins
0912-random-pick-with-weight

Two Pointers

0125-valid-palindrome
0141-linked-list-cycle
0283-move-zeroes
0611-valid-triangle-number
0658-find-k-closest-elements
1083-two-sum-less-than-k
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
2392-successful-pairs-of-spells-and-potions

Sliding Window

0658-find-k-closest-elements

Heap (Priority Queue)

0658-find-k-closest-elements
1753-path-with-minimum-effort

Divide and Conquer

0004-median-of-two-sorted-arrays
0169-majority-element

Greedy

0409-longest-palindrome
0410-split-array-largest-sum
0611-valid-triangle-number
1929-maximum-value-at-a-given-index-in-a-bounded-array

Prefix Sum

0410-split-array-largest-sum
0912-random-pick-with-weight

Randomized

0912-random-pick-with-weight

Dynamic Programming

0022-generate-parentheses
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0221-maximal-square
0300-longest-increasing-subsequence
0354-russian-doll-envelopes
0410-split-array-largest-sum
1352-maximum-profit-in-job-scheduling
1402-count-square-submatrices-with-all-ones

Depth-First Search

0110-balanced-binary-tree
0207-course-schedule
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0733-flood-fill
1753-path-with-minimum-effort

Breadth-First Search

0207-course-schedule
0226-invert-binary-tree
0733-flood-fill
1753-path-with-minimum-effort

Union Find

1753-path-with-minimum-effort

Stack

0020-valid-parentheses
0232-implement-queue-using-stacks

Linked List

0021-merge-two-sorted-lists
0141-linked-list-cycle

Recursion

0021-merge-two-sorted-lists
0050-powx-n

Tree

0110-balanced-binary-tree
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree

Binary Tree

0110-balanced-binary-tree
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree

Backtracking

0022-generate-parentheses
0039-combination-sum

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree

Queue

0232-implement-queue-using-stacks

Memoization

0070-climbing-stairs

Graph

0207-course-schedule

Topological Sort

0207-course-schedule

Bit Manipulation

0067-add-binary

Simulation

0067-add-binary