Questions
Every question from every semester, A to Z.
All questions
3Sum
two-pointers
4Sum
two-pointers
Adapter Pattern
design-patterns
Add Binary
Add Two Numbers
linked-list
Alex's Brew Coffee Shop Billing
Alice Typing Problem
Alien Dictionary
graphtopological-sort
Alphabetical Order Checker
Apply Discount to Prices
string
Assign Cookies
greedy
Asteroid Collision
Backspace String Compare
stack
Balanced Binary Tree
trees
Baseball Game
Basic Calculator
stack
Best Time to Buy and Sell Stock
sliding-window
Best Time to Buy and Sell Stock II
greedy
Binary Representation
Binary Search
arraybinary-search
Binary Tree Inorder Traversal
Binary Tree Level Order Traversal
trees
Binary Tree Maximum Path Sum
trees
Binary Tree Postorder Traversal
Binary Tree Preorder Traversal
Binary Tree Right Side View
Bitwise AND of Numbers Range
Boats to Save People
Building Boxes
math
Burst Balloons
2d-dynamic-programming
Caffeine Calculator
Calculate Amount Paid in Taxes
array
Calculate Money in Leetcode Bank
math
Can Place Flowers
arraygreedy
Canadian Province Validator
Candy
Candy Crush
array
Car Fleet
stack
Car Pooling
Check if a String Is an Acronym of Words
array
Check If Digits Are Equal in String After Operations II
math
Check if Strings Can be Made Equal With Operations I
string
Cinema Seat Allocation
arrayhash-mapbit-manipulationgreedy
Climbing Stairs
dynamic-programming
Clone Graph
graphbfsdfshash-map
Coffee Sales Projection
Coin Change
dynamic-programming
Concatenation of Array
Construct Binary Tree from Preorder and Inorder Traversal
Construct String With Repeat Limit
stringgreedyheap-priority-queue
Container With Most Water
two-pointers
Contains Duplicate
arrays-and-hashing
Copy List with Random Pointer
linked-list
Count Number of Homogenous Substrings
math
Count Valid Sequences
math
Count Vowels
Course Schedule
graphtopological-sort
Course Schedule II
graphtopological-sort
Daily Temperatures
stack
Decode String
stack
Decrease Elements To Make Array Zigzag
array
Defanging an IP Address
string
Delivering Boxes from Storage to Ports
array
Design HashMap
hash-map
Design HashSet
hash-set
Design Twitter
heap-priority-queue
Detect Capital
string
Diameter of Binary Tree
trees
Diameter of Binary Tree
tree
Dice Ways
dynamic-programming
Digit Frequency Score
hash-table
Distinct Subsequences
dynamic-programming
Edit Distance
dynamic-programming
Employee Free Time
intervals
Evaluate Reverse Polish Notation
Factory Method Pattern
design-patterns
Fahrenheit to Celsius
math
Fibonacci Number
math
Find in Mountain Array
array
Find Kth Largest XOR Coordinate Value
array
Find Maximum Non-decreasing Array Length
queuedynamic-programming
Find Median From Data Stream
heap-priority-queue
Find Minimum in Rotated Sorted Array
binary-search
Find the Duplicate Number
Find the Town Judge
graph
Find the Winner of the Circular Game
queuesimulation
First Unique Character in a String
string
Fraction to Recurring Decimal
hash-map
Generate Parentheses
Goal Parser Interpretation
string
Greatest Common Divisor (GCD)
Group Anagrams
Group Anagrams
array
Hello World
House Robber
dynamic-programming
HW13 - Coffee Production Scheduler
Implement Linked List
linked-listdata-structure-design
Implement Queue
queuedata-structure-design
Implement Queue Using Stacks
queuestack
Implement Stack
stackdata-structure-design
Implement Stack using Queues
stackqueue
Implement Trie (Prefix Tree)
trie
Insert Interval
intervals
Interleaving String
dynamic-programming
Intersection of Two Linked Lists
linked-listtwo-pointers
Invert Binary Tree
trees
Jump Game
greedy
Koko Eating Bananas
binary-search
Kth Largest Element in a Stream
heap-priority-queue
Kth Smallest Element in a BST
trees
Largest Integer With Given Digit Sum
math
Largest Rectangle In Histogram
stack
Largest Submatrix With Rearrangements
array
Last Even Index
Last Stone Weight
heap-priority-queue
Lemonade Change
greedy
Limit Occurrences in Sorted Array
array
Linked List Cycle Detection
linked-list
Linked List Cycle II
linked-listtwo-pointers
Longest Common Prefix of K Strings After Removal
array
Longest Common Subsequence
Longest Consecutive Sequence
arrays-and-hashing
Longest Increasing Path in a Matrix
2d-dynamic-programming
Longest Palindrome
stringhash-mapgreedy
Longest Palindromic Substring
Longest Repeating Character Replacement
sliding-window
Longest Substring Without Repeating Characters
sliding-window
Longest Valid Parentheses
stackdynamic-programming
Longest Word in Dictionary
stringtrie
Lowest Common Ancestor of a Binary Search Tree
trees
LRU Cache
arrays-and-hashing
Majority Element
arrays-and-hashingbit-manipulation
Manhattan Distances of All Arrangements of Pieces
math
Max Area of Island
graphdfsmatrix
Maximal Rectangle
stack
Maximize Pair Strength Using GCD
array
Maximize Value of Function in a Ball Passing Game
array
Maximum Depth of Binary Tree
trees
Maximum Element-Sum of a Complete Subset of Indices
array
Maximum Frequency Stack
stackhash-map
Maximum Height by Stacking Cuboids
array
Maximum Manhattan Distance After K Changes
hash-table
Maximum Number of Distinct Elements After Operations
array
Maximum Number of Tasks You Can Assign
queuebinary-search
Maximum Points After Collecting Coins From All Nodes
array
Maximum Score with Co-Prime Element
array
Maximum Subarray
dynamic-programming
Maximum Subarray Sum After Multiplier
array
Maximum Value of K Coins From Piles
array
Median of Two Sorted Arrays
binary-search
Meeting Rooms
intervals
Meeting Rooms II
intervalsheap-priority-queue
Merge Intervals
intervals
Merge k Sorted Lists
linked-list
Merge Strings Alternately
Merge Two Sorted Linked Lists
linked-list
Middle of the Linked List
linked-list
Min Cost Climbing Stairs
dynamic-programming
Min Stack
stack
Minimum Deletions to Make Array Beautiful
array
Minimum Interval to Include Each Query
intervals
Minimum Number of Coins for Fruits
queuedynamic-programming
Minimum Number of People to Teach
array
Minimum Number of Refueling Stops
greedyheap-priority-queue
Minimum Sum of Mountain Triplets I
array
Minimum Time to Reach Target With Limited Power
array
Minimum Window Substring
sliding-window
Missing Number
Most Frequent Element
Move Zeroes
arrays-and-hashingtwo-pointers
Multiple Check
N-ary Tree Preorder Traversal
stack
N-Queens
backtracking
N-Queens II
backtracking
Next Greater Element
stack
Non-Overlapping Intervals
intervals
Number of 1 Bits
bit-manipulation
Number of Distinct Roll Sequences
dynamic-programming
Number of Equivalent Domino Pairs
array
Number of Islands
graphdfsbfsmatrix
Number of Provinces
depth-first-search
Number of Recent Calls
queue
Number of Visible People in a Queue
stack
Odd Even Linked List
linked-list
Online Stock Span
stack
Pacific Atlantic Water Flow
graphdfs
Palindrome Checker
Palindrome Linked List
linked-listtwo-pointers
Palindrome Number
arrays-and-hashing
Path Sum
trees
Permutation In String
sliding-window
Plus One
arrays-and-hashing
Pow(x, n)
math
Power of Two
math
Product of Array Except Self
arrays-and-hashing
Prototype Pattern
design-patterns
Put Marbles in Bags
arraygreedysortingheap-priority-queue
Rank Transform of a Matrix
union-findmatrix
Ransom Note
hash-table
Rearranging Fruits
arrayhash-mapgreedysorting
Reconstruct Itinerary
advanced-graphs
Redundant Connection II
graphunion-find
Regular Expression Matching
2d-dynamic-programming
Remove Digit From Number to Maximize Result
string
Remove Duplicates from Sorted Array
two-pointers
Remove Element
arrays-and-hashingtwo-pointers
Remove Nth Node From End of List
linked-list
Reorder Linked List
linked-list
Repeated DNA Sequences
hash-mapsliding-window
Replace Words
trie
Reverse Integer
bit-manipulation
Reverse Linked List
linked-listpointers
Reverse Nodes in K-Group
linked-list
Reverse String II
two-pointers
Reverse Vowels of a String
stringtwo-pointers
Richest Customer Wealth
array
Roman to Integer
arrays-and-hashing
Rotate Image
array
Rotting Oranges
graphbfsmatrix
Same Tree
trees
Search a 2D Matrix
binary-search
Search in Rotated Sorted Array
binary-search
Search Insert Position
binary-searcharray
Select K Disjoint Special Substrings
hash-table
Serialize and Deserialize Binary Tree
trees
Shortest Matching Substring
two-pointers
Shortest Path With At Most K Consecutive Identical Characters
string
Shut the Box
matrixbfs3d-geometryenumeration
Simplify Path
stackstring
Single Number
bit-manipulation
Sliding Window Maximum
sliding-window
Sort Colors
arrays-and-hashingtwo-pointers
Sort List
linked-list
Sort Matrix by Diagonals
array
Steps to Make Array Non-decreasing
array
String Comparison
String Matching
String Reversal
String Transformation
math
Subsets
backtracking
Subtree of Another Tree
trees
Sudoku Solver
backtracking
Sum of Digits Times Seven
Sum of Two Integers
bit-manipulation
Sum of Unique Elements
array
Sum Two Integers
Summary Ranges
intervals
Swim in Rising Water
graphbfsheap-priority-queue
Symmetric Tree
trees
Top K Frequent Elements
arrays-and-hashing
Trapping Rain Water
two-pointers
Tribonacci Sequence
dynamic-programming
Two Sum
arrayhash-map
Two Sum II - Input Array Is Sorted
two-pointers
Unique Paths
dynamic-programming
Valid Anagram
stringhash-mapsorting
Valid Binary Strings With Cost Limit
string
Valid Parentheses
stack
Valid Parenthesis String
stackgreedy
Valid Sudoku
arrays-and-hashing
Validate Binary Search Tree
trees
Word Ladder
graph
Word Pattern
arrays-and-hashing
Word Search II
tries