← Study
DSA
One question per page — problem, approach, complexity, solution.
Categories
Arrays & Hashing
Two Pointers
Sliding Window
Stack
Binary Search
Linked List
Trees
Tries
Heap / Priority Queue
Backtracking
Graphs
Advanced Graphs
1-D DP
2-D DP
Greedy
Intervals
Math & Geometry
Bit Manipulation
Arrays & Hashing
Contains Duplicate
EASY
Valid Anagram
EASY
Two Sum
EASY
Group Anagrams
MEDIUM
Top K Frequent Elements
MEDIUM
Encode and Decode Strings
MEDIUM
Product of Array Except Self
MEDIUM
Valid Sudoku
MEDIUM
Longest Consecutive Sequence
MEDIUM
Two Pointers
Valid Palindrome
EASY
Two Sum II - Input Array Is Sorted
MEDIUM
3Sum
MEDIUM
Container With Most Water
MEDIUM
Trapping Rain Water
HARD
Sliding Window
Best Time to Buy and Sell Stock
EASY
Longest Substring Without Repeating Characters
MEDIUM
Longest Repeating Character Replacement
MEDIUM
Permutation in String
MEDIUM
Minimum Window Substring
HARD
Sliding Window Maximum
HARD
Stack
Valid Parentheses
EASY
Min Stack
MEDIUM
Evaluate Reverse Polish Notation
MEDIUM
Generate Parentheses
MEDIUM
Daily Temperatures
MEDIUM
Car Fleet
MEDIUM
Largest Rectangle in Histogram
HARD
Binary Search
Binary Search
EASY
Search a 2D Matrix
MEDIUM
Koko Eating Bananas
MEDIUM
Find Minimum in Rotated Sorted Array
MEDIUM
Search in Rotated Sorted Array
MEDIUM
Time Based Key-Value Store
MEDIUM
Median of Two Sorted Arrays
HARD
Linked List
Reverse Linked List
EASY
Merge Two Sorted Lists
EASY
Reorder List
MEDIUM
Remove Nth Node From End of List
MEDIUM
Copy List with Random Pointer
MEDIUM
Add Two Numbers
MEDIUM
Linked List Cycle
EASY
Find the Duplicate Number
MEDIUM
LRU Cache
MEDIUM
Merge k Sorted Lists
HARD
Reverse Nodes in k-Group
HARD
Trees
Invert Binary Tree
EASY
Maximum Depth of Binary Tree
EASY
Diameter of Binary Tree
EASY
Balanced Binary Tree
EASY
Same Tree
EASY
Subtree of Another Tree
EASY
Lowest Common Ancestor of a Binary Search Tree
MEDIUM
Binary Tree Level Order Traversal
MEDIUM
Binary Tree Right Side View
MEDIUM
Count Good Nodes in Binary Tree
MEDIUM
Validate Binary Search Tree
MEDIUM
Kth Smallest Element in a BST
MEDIUM
Construct Binary Tree from Preorder and Inorder Traversal
MEDIUM
Binary Tree Maximum Path Sum
HARD
Serialize and Deserialize Binary Tree
HARD
Tries
Implement Trie (Prefix Tree)
MEDIUM
Design Add and Search Words Data Structure
MEDIUM
Word Search II
HARD
Heap / Priority Queue
Kth Largest Element in a Stream
EASY
Last Stone Weight
EASY
K Closest Points to Origin
MEDIUM
Kth Largest Element in an Array
MEDIUM
Task Scheduler
MEDIUM
Design Twitter
MEDIUM
Find Median from Data Stream
HARD
Backtracking
Subsets
MEDIUM
Combination Sum
MEDIUM
Permutations
MEDIUM
Subsets II
MEDIUM
Combination Sum II
MEDIUM
Word Search
MEDIUM
Palindrome Partitioning
MEDIUM
Letter Combinations of a Phone Number
MEDIUM
N-Queens
HARD
Graphs
Number of Islands
MEDIUM
Max Area of Island
MEDIUM
Clone Graph
MEDIUM
Walls and Gates
MEDIUM
Rotting Oranges
MEDIUM
Pacific Atlantic Water Flow
MEDIUM
Surrounded Regions
MEDIUM
Course Schedule
MEDIUM
Course Schedule II
MEDIUM
Graph Valid Tree
MEDIUM
Number of Connected Components in an Undirected Graph
MEDIUM
Redundant Connection
MEDIUM
Word Ladder
HARD
Advanced Graphs
Reconstruct Itinerary
HARD
Min Cost to Connect All Points
MEDIUM
Network Delay Time
MEDIUM
Swim in Rising Water
HARD
Alien Dictionary
HARD
Cheapest Flights Within K Stops
MEDIUM
1-D DP
Climbing Stairs
EASY
Min Cost Climbing Stairs
EASY
House Robber
MEDIUM
House Robber II
MEDIUM
Longest Palindromic Substring
MEDIUM
Palindromic Substrings
MEDIUM
Decode Ways
MEDIUM
Coin Change
MEDIUM
Maximum Product Subarray
MEDIUM
Word Break
MEDIUM
Longest Increasing Subsequence
MEDIUM
Partition Equal Subset Sum
MEDIUM
2-D DP
Unique Paths
MEDIUM
Longest Common Subsequence
MEDIUM
Best Time to Buy and Sell Stock with Cooldown
MEDIUM
Coin Change II
MEDIUM
Target Sum
MEDIUM
Interleaving String
MEDIUM
Longest Increasing Path in a Matrix
HARD
Distinct Subsequences
HARD
Edit Distance
MEDIUM
Burst Balloons
HARD
Regular Expression Matching
HARD
Greedy
Maximum Subarray
MEDIUM
Jump Game
MEDIUM
Jump Game II
MEDIUM
Gas Station
MEDIUM
Hand of Straights
MEDIUM
Merge Triplets to Form Target Triplet
MEDIUM
Partition Labels
MEDIUM
Valid Parenthesis String
MEDIUM
Intervals
Insert Interval
MEDIUM
Merge Intervals
MEDIUM
Non-overlapping Intervals
MEDIUM
Meeting Rooms
EASY
Meeting Rooms II
MEDIUM
Minimum Interval to Include Each Query
HARD
Math & Geometry
Rotate Image
MEDIUM
Spiral Matrix
MEDIUM
Set Matrix Zeroes
MEDIUM
Happy Number
EASY
Plus One
EASY
Pow(x, n)
MEDIUM
Multiply Strings
MEDIUM
Detect Squares
MEDIUM
Bit Manipulation
Single Number
EASY
Number of 1 Bits
EASY
Counting Bits
EASY
Reverse Bits
EASY
Missing Number
EASY
Sum of Two Integers
MEDIUM
Reverse Integer
MEDIUM