Problems
Programming problems with multi-language solutions, complexity analysis, and explanations.
94 articles
Easy
Easy Problems
34
Easy
Contains Duplicate
Easy
Excel Sheet Column Number
Easy
Linked List Cycle Detection
Easy
Happy Number
Easy
Symmetric Tree
Easy
Reverse Integer
Easy
Maximum Depth of Binary Tree
Easy
Palindrome Number Check
Easy
Reverse Linked List
Easy
Valid Parentheses
Easy
Binary Search
Easy
Merge Two Sorted Linked Lists
Easy
Merge Sorted Array (In-Place)
Easy
Remove Duplicates from Sorted Array
Easy
Pascal’s Triangle
Easy
Plus One: Increment Array Number
Easy
Power of Two
Easy
Climbing Stairs
Easy
Missing Number in Range
Easy
Maximum Subarray (Kadane’s Algorithm)
Easy
Intersection of Two Arrays
Easy
Best Time to Buy and Sell Stock
Easy
Sqrt(x): Integer Square Root
Easy
Single Number: Find the Unique Element
Easy
Count Primes Below N
Easy
Valid Anagram
Easy
Roman to Integer
Easy
First Unique Character in a String
Easy
Implement strStr (Substring Search)
Easy
Move Zeroes to End
Easy
FizzBuzz
Easy
Two Sum: Find Pair That Adds Up to Target
Easy
Reverse a String In-Place
Easy
Fibonacci Number: Iterative and Recursive
Medium
Medium Problems
30
Medium
Unique Paths in Grid
Medium
Product of Array Except Self
Medium
Sort Colors (Dutch National Flag)
Medium
Search in Rotated Sorted Array
Medium
Add Two Numbers (Linked List)
Medium
Combination Sum
Medium
Longest Substring Without Repeating Characters
Medium
Permutations of an Array
Medium
Longest Palindromic Substring
Medium
Subsets (Power Set)
Medium
String to Integer (atoi)
Medium
Word Search in Grid
Medium
Container With Most Water
Medium
Validate Binary Search Tree
Medium
3Sum: Find Unique Triplets That Sum to Zero
Medium
Binary Tree Level Order Traversal
Medium
Generate All Valid Parentheses Combinations
Medium
Course Schedule (Detect Cycle)
Medium
Group Anagrams
Medium
Number of Islands
Medium
Pow(x, n): Fast Exponentiation
Medium
House Robber: Maximize Loot
Medium
Rotate Image (90 Degrees)
Medium
Coin Change: Fewest Coins for Amount
Medium
Spiral Matrix Traversal
Medium
Letter Combinations of a Phone Number
Medium
Jump Game: Can You Reach the End?
Medium
Find First and Last Position
Medium
Merge Overlapping Intervals
Medium
Top K Frequent Elements
Hard
Hard Problems
30
Hard
Serialize and Deserialize Binary Tree
Hard
Median of Two Sorted Arrays
Hard
Regular Expression Matching
Hard
Trapping Rain Water
Hard
Word Break II: All Sentences
Hard
Merge K Sorted Lists
Hard
Wildcard Matching
Hard
First Missing Positive Integer
Hard
Longest Valid Parentheses
Hard
N-Queens
Hard
Palindrome Partitioning II
Hard
Edit Distance (Levenshtein)
Hard
Burst Balloons
Hard
Word Ladder: Shortest Transformation
Hard
Maximal Rectangle
Hard
Find Median from Data Stream
Hard
Best Time to Buy and Sell Stock III (Two Transactions)
Hard
Largest Rectangle in Histogram
Hard
Recover Binary Search Tree
Hard
Sliding Window Maximum
Hard
Substring with Concatenation of All Words
Hard
Reverse Nodes in K-Group
Hard
Word Search II
Hard
Binary Tree Maximum Path Sum
Hard
Distinct Subsequences
Hard
Longest Consecutive Sequence
Hard
Russian Doll Envelopes
Hard
LRU Cache
Hard
Shortest Path in Binary Matrix
Hard
Minimum Window Substring