LeetCode

LeetCode Topics

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0037-sudoku-solver
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0169-majority-element
0229-majority-element-ii
0347-top-k-frequent-elements
0496-next-greater-element-i
0893-all-nodes-distance-k-in-binary-tree

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0908-middle-of-the-linked-list

Two Pointers

0015-3sum
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0042-trapping-rain-water
0061-rotate-list
0075-sort-colors
0088-merge-sorted-array
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0234-palindrome-linked-list
0295-find-median-from-data-stream
0455-assign-cookies
0908-middle-of-the-linked-list

Math

0002-add-two-numbers
0048-rotate-image
0050-powx-n
0062-unique-paths
0066-plus-one
2610-closest-prime-numbers-in-range

Number Theory

2610-closest-prime-numbers-in-range

String

0003-longest-substring-without-repeating-characters
0020-valid-parentheses
0131-palindrome-partitioning
1250-longest-common-subsequence

Dynamic Programming

0042-trapping-rain-water
0053-maximum-subarray
0062-unique-paths
0118-pascals-triangle
0131-palindrome-partitioning
0322-coin-change
1250-longest-common-subsequence

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0050-powx-n
0206-reverse-linked-list
0234-palindrome-linked-list

Stack

0020-valid-parentheses
0042-trapping-rain-water
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0234-palindrome-linked-list
0496-next-greater-element-i

Tree

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree
0144-binary-tree-preorder-traversal
0199-binary-tree-right-side-view
0404-sum-of-left-leaves
0893-all-nodes-distance-k-in-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree
0144-binary-tree-preorder-traversal
0199-binary-tree-right-side-view
0404-sum-of-left-leaves
0893-all-nodes-distance-k-in-binary-tree

Binary Tree

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree
0144-binary-tree-preorder-traversal
0199-binary-tree-right-side-view
0404-sum-of-left-leaves
0893-all-nodes-distance-k-in-binary-tree

Database

0180-consecutive-numbers
0596-classes-more-than-5-students
0610-triangle-judgement
0619-biggest-single-number
0620-not-boring-movies
1135-customers-who-bought-all-products
1155-product-sales-analysis-iii
1161-project-employees-i
1182-game-play-analysis-iv
1245-user-activity-for-the-past-30-days-i
1278-product-price-at-a-given-date
1317-monthly-transactions-i
1327-last-person-to-fit-in-the-bus
1338-queries-quality-and-percentage
1390-average-selling-price
1415-students-and-examinations
1724-customer-who-visited-but-did-not-make-any-transactions
1773-percentage-of-users-attended-a-contest
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1942-primary-department-for-each-employee
2057-count-salary-categories
2087-confirmation-rate
2127-employees-whose-manager-left-the-company
2495-number-of-unique-subjects-taught-by-each-teacher

Breadth-First Search

0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0322-coin-change
0404-sum-of-left-leaves
0893-all-nodes-distance-k-in-binary-tree

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0015-3sum
0018-4sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0033-search-in-rotated-sorted-array
0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0042-trapping-rain-water
0048-rotate-image
0053-maximum-subarray
0056-merge-intervals
0066-plus-one
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0075-sort-colors
0088-merge-sorted-array
0090-subsets-ii
0118-pascals-triangle
0128-longest-consecutive-sequence
0169-majority-element
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0322-coin-change
0347-top-k-frequent-elements
0455-assign-cookies
0485-max-consecutive-ones
0493-reverse-pairs
0496-next-greater-element-i
0540-single-element-in-a-sorted-array

Matrix

0037-sudoku-solver
0048-rotate-image
0073-set-matrix-zeroes
0074-search-a-2d-matrix

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
0169-majority-element
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
0493-reverse-pairs

Sorting

0015-3sum
0018-4sum
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0455-assign-cookies

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0074-search-a-2d-matrix
0493-reverse-pairs
0540-single-element-in-a-sorted-array

Counting

0169-majority-element
0229-majority-element-ii
0347-top-k-frequent-elements

Combinatorics

0062-unique-paths

Binary Indexed Tree

0493-reverse-pairs

Segment Tree

0493-reverse-pairs

Merge Sort

0493-reverse-pairs

Ordered Set

0493-reverse-pairs

Union Find

0128-longest-consecutive-sequence

Sliding Window

0003-longest-substring-without-repeating-characters

Monotonic Stack

0042-trapping-rain-water
0496-next-greater-element-i

Greedy

0455-assign-cookies

Backtracking

0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0090-subsets-ii
0131-palindrome-partitioning

Bit Manipulation

0090-subsets-ii

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0295-find-median-from-data-stream
0347-top-k-frequent-elements

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Design

0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0295-find-median-from-data-stream

Data Stream

0295-find-median-from-data-stream

Bucket Sort

0347-top-k-frequent-elements

Queue

0225-implement-stack-using-queues
0232-implement-queue-using-stacks