Skip to main content

LeetCode Coding Interview Problems

206 curated problems across 21 patterns

206 problems
Problem Link
Longest Substring Without Repeating Characters
Minimum Window Substring
Sliding Window Maximum
Longest Repeating Character Replacement
Permutation in String
Find All Anagrams in a String
Max Consecutive Ones III
Subarray Product Less Than K
Minimum Size Subarray Sum
Fruit Into Baskets
Two Sum II - Input Array Is Sorted
3Sum
Container With Most Water
Trapping Rain Water
Valid Palindrome
Move Zeroes
Remove Duplicates from Sorted Array
Binary Search
Search in Rotated Sorted Array
Find Minimum in Rotated Sorted Array
Koko Eating Bananas
Find Peak Element
Time Based Key-Value Store
Subarray Sum Equals K
Product of Array Except Self
Range Sum Query - Immutable
Contiguous Array
Two Sum
Group Anagrams
Top K Frequent Elements
Valid Anagram
Longest Consecutive Sequence
Valid Parentheses
Min Stack
Evaluate Reverse Polish Notation
Daily Temperatures
Decode String
Number of Islands
Rotting Oranges
Binary Tree Level Order Traversal
Word Ladder
Kth Largest Element in an Array
Find Median from Data Stream
Task Scheduler
Merge K Sorted Lists
Reverse Linked List
Linked List Cycle
Merge Two Sorted Lists
Reorder List
Invert Binary Tree
Maximum Depth of Binary Tree
Validate Binary Search Tree
Lowest Common Ancestor of a BST
Binary Tree Maximum Path Sum
Serialize and Deserialize Binary Tree
Clone Graph
Pacific Atlantic Water Flow
Number of Connected Components in Undirected Graph
Climbing Stairs
House Robber
Coin Change
Longest Increasing Subsequence
Longest Common Subsequence
Word Break
Edit Distance
Unique Paths
Maximum Subarray
Decode Ways
Jump Game
Jump Game II
Gas Station
Permutations
Subsets
Combination Sum
Word Search
Implement Trie (Prefix Tree)
Design Add and Search Words Data Structure
Redundant Connection
Accounts Merge
Largest Rectangle in Histogram
Next Greater Element I
Course Schedule
Course Schedule II
Single Number
Missing Number
Counting Bits
Merge Intervals
Insert Interval
Rotate Image
Spiral Matrix
Set Matrix Zeroes
4Sum
Sort Colors
Squares of a Sorted Array
Boats to Save People
Search a 2D Matrix
Capacity to Ship Packages Within D Days
Split Array Largest Sum
Median of Two Sorted Arrays
Contains Duplicate
Word Pattern
Isomorphic Strings
LRU Cache
Asteroid Collision
Remove K Digits
Car Fleet
01 Matrix
Walls and Gates
Shortest Path in Binary Matrix
Open the Lock
K Closest Points to Origin
Reorganize String
Top K Frequent Words
Add Two Numbers
Remove Nth Node From End of List
Copy List with Random Pointer
Palindrome Linked List
Diameter of Binary Tree
Symmetric Tree
Binary Tree Right Side View
Kth Smallest Element in a BST
Construct Binary Tree from Preorder and Inorder Traversal
Path Sum II
Surrounded Regions
Minimum Height Trees
Network Delay Time
Min Cost Climbing Stairs
House Robber II
Partition Equal Subset Sum
Target Sum
Best Time to Buy and Sell Stock
Palindromic Substrings
Longest Palindromic Substring
Best Time to Buy and Sell Stock with Cooldown
Non-overlapping Intervals
Meeting Rooms II
Queue Reconstruction by Height
Letter Combinations of a Phone Number
Generate Parentheses
N-Queens
Palindrome Partitioning
Word Search II
Longest Word in Dictionary
Number of Provinces
Satisfiability of Equality Equations
Sum of Subarray Minimums
Online Stock Span
Number of 1 Bits
Reverse Bits
Sum of Two Integers
Minimum Interval to Include Each Query
Meeting Rooms
Maximal Square
Game of Life
Find Pivot Index
Running Sum of 1D Array
Minimum Operations to Reduce X to Zero
Longest Subarray of 1's After Deleting One Element
Count Number of Nice Subarrays
Valid Palindrome II
Minimum Length of String After Deleting Similar Ends
4Sum II
Number of Good Pairs
Subarray Sum Divisible by K
Basic Calculator II
Simplify Path
Minimum Genetic Mutation
Jump Game III
Find K Pairs with Smallest Sums
Minimum Cost to Connect Sticks
Swap Nodes in Pairs
Rotate List
Reverse Nodes in k-Group
Count Good Nodes in Binary Tree
Flatten Binary Tree to Linked List
Sum Root to Leaf Numbers
Populating Next Right Pointers in Each Node
Find Eventual Safe States
All Paths From Source to Target
Cheapest Flights Within K Stops
Maximum Product Subarray
Triangle
Minimum Path Sum
Perfect Squares
Regular Expression Matching
Interleaving String
Best Time to Buy and Sell Stock with Transaction Fee
Integer Break
Minimum Number of Arrows to Burst Balloons
Candy
Combination Sum II
Subsets II
Replace Words
Swim in Rising Water
Most Stones Removed with Same Row or Column
132 Pattern
Remove Duplicate Letters
Parallel Courses
Sequence Reconstruction
Single Number II
Power of Two
Search a 2D Matrix II
Count Negative Numbers in a Sorted Matrix
Frequency of the Most Frequent Element
Maximum Number of Vowels in a Substring of Given Length
Minimum Average Difference
Buy me a coffee