Ace Your Next Tech Interview
A curated list of the most frequently asked Data Structures & Algorithms questions from top tech companies. Track your progress and land your dream job.
DSA Problem List
A curated list of the most important DSA questions for interview preparation.
| Problem | Difficulty | Link |
|---|---|---|
| Contains Duplicate | Easy | Link to LeetCode problem |
| Valid Anagram | Easy | Link to LeetCode problem |
| Two Sum | Easy | Link to LeetCode problem |
| Group Anagrams | Medium | Link to LeetCode problem |
| Top K Frequent Elements | Medium | Link to LeetCode problem |
| Product of Array Except Self | Medium | Link to LeetCode problem |
| Valid Sudoku | Medium | Link to LeetCode problem |
| Encode and Decode Strings | Medium | Link to LeetCode problem |
| Longest Consecutive Sequence | Medium | Link to LeetCode problem |
| First Missing Positive | Hard | Link to LeetCode problem |
| Substring with Concatenation of All Words | Hard | Link to LeetCode problem |
| Sort Colors | Medium | Link to LeetCode problem |
| Find the Duplicate Number | Medium | Link to LeetCode problem |
| Rotate Image | Medium | Link to LeetCode problem |
| Set Matrix Zeroes | Medium | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Valid Palindrome | Easy | Link to LeetCode problem |
| Two Sum II - Input Array Is Sorted | Medium | Link to LeetCode problem |
| 3Sum | Medium | Link to LeetCode problem |
| Container With Most Water | Medium | Link to LeetCode problem |
| Trapping Rain Water | Hard | Link to LeetCode problem |
| Merge Sorted Array | Easy | Link to LeetCode problem |
| Move Zeroes | Easy | Link to LeetCode problem |
| Remove Duplicates from Sorted Array | Easy | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Best Time to Buy and Sell Stock | Easy | Link to LeetCode problem |
| Longest Substring Without Repeating Characters | Medium | Link to LeetCode problem |
| Longest Repeating Character Replacement | Medium | Link to LeetCode problem |
| Permutation in String | Medium | Link to LeetCode problem |
| Minimum Window Substring | Hard | Link to LeetCode problem |
| Sliding Window Maximum | Hard | Link to LeetCode problem |
| Frequency of the Most Frequent Element | Medium | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Valid Parentheses | Easy | Link to LeetCode problem |
| Min Stack | Medium | Link to LeetCode problem |
| Evaluate Reverse Polish Notation | Medium | Link to LeetCode problem |
| Generate Parentheses | Medium | Link to LeetCode problem |
| Daily Temperatures | Medium | Link to LeetCode problem |
| Car Fleet | Medium | Link to LeetCode problem |
| Largest Rectangle in Histogram | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Binary Search | Easy | Link to LeetCode problem |
| Search a 2D Matrix | Medium | Link to LeetCode problem |
| Koko Eating Bananas | Medium | Link to LeetCode problem |
| Find Minimum in Rotated Sorted Array | Medium | Link to LeetCode problem |
| Search in Rotated Sorted Array | Medium | Link to LeetCode problem |
| Time Based Key-Value Store | Medium | Link to LeetCode problem |
| Median of Two Sorted Arrays | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Reverse Linked List | Easy | Link to LeetCode problem |
| Merge Two Sorted Lists | Easy | Link to LeetCode problem |
| Reorder List | Medium | Link to LeetCode problem |
| Remove Nth Node From End of List | Medium | Link to LeetCode problem |
| Copy List with Random Pointer | Medium | Link to LeetCode problem |
| Add Two Numbers | Medium | Link to LeetCode problem |
| Linked List Cycle | Easy | Link to LeetCode problem |
| Find the Duplicate Number | Medium | Link to LeetCode problem |
| LRU Cache | Medium | Link to LeetCode problem |
| Merge k Sorted Lists | Hard | Link to LeetCode problem |
| Reverse Nodes in k-Group | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Invert Binary Tree | Easy | Link to LeetCode problem |
| Maximum Depth of Binary Tree | Easy | Link to LeetCode problem |
| Diameter of Binary Tree | Easy | Link to LeetCode problem |
| Balanced Binary Tree | Easy | Link to LeetCode problem |
| Same Tree | Easy | Link to LeetCode problem |
| Subtree of Another Tree | Easy | Link to LeetCode problem |
| Lowest Common Ancestor of a Binary Search Tree | Medium | Link to LeetCode problem |
| Binary Tree Level Order Traversal | Medium | Link to LeetCode problem |
| Binary Tree Right Side View | Medium | Link to LeetCode problem |
| Count Good Nodes in Binary Tree | Medium | Link to LeetCode problem |
| Validate Binary Search Tree | Medium | Link to LeetCode problem |
| Kth Smallest Element in a BST | Medium | Link to LeetCode problem |
| Construct Binary Tree from Preorder and Inorder Traversal | Medium | Link to LeetCode problem |
| Binary Tree Maximum Path Sum | Hard | Link to LeetCode problem |
| Serialize and Deserialize Binary Tree | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Implement Trie (Prefix Tree) | Medium | Link to LeetCode problem |
| Design Add and Search Words Data Structure | Medium | Link to LeetCode problem |
| Word Search II | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Kth Largest Element in a Stream | Easy | Link to LeetCode problem |
| Last Stone Weight | Easy | Link to LeetCode problem |
| K Closest Points to Origin | Medium | Link to LeetCode problem |
| Kth Largest Element in an Array | Medium | Link to LeetCode problem |
| Task Scheduler | Medium | Link to LeetCode problem |
| Design Twitter | Medium | Link to LeetCode problem |
| Find Median from Data Stream | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Subsets | Medium | Link to LeetCode problem |
| Combination Sum | Medium | Link to LeetCode problem |
| Permutations | Medium | Link to LeetCode problem |
| Subsets II | Medium | Link to LeetCode problem |
| Combination Sum II | Medium | Link to LeetCode problem |
| Word Search | Medium | Link to LeetCode problem |
| Palindrome Partitioning | Medium | Link to LeetCode problem |
| Letter Combinations of a Phone Number | Medium | Link to LeetCode problem |
| N-Queens | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Number of Islands | Medium | Link to LeetCode problem |
| Clone Graph | Medium | Link to LeetCode problem |
| Max Area of Island | Medium | Link to LeetCode problem |
| Pacific Atlantic Water Flow | Medium | Link to LeetCode problem |
| Surrounded Regions | Medium | Link to LeetCode problem |
| Rotting Oranges | Medium | Link to LeetCode problem |
| Walls and Gates | Medium | Link to LeetCode problem |
| Course Schedule | Medium | Link to LeetCode problem |
| Course Schedule II | Medium | Link to LeetCode problem |
| Redundant Connection | Medium | Link to LeetCode problem |
| Number of Connected Components in an Undirected Graph | Medium | Link to LeetCode problem |
| Graph Valid Tree | Medium | Link to LeetCode problem |
| Word Ladder | Hard | Link to LeetCode problem |
| Reconstruct Itinerary | Hard | Link to LeetCode problem |
| Min Cost to Connect All Points | Medium | Link to LeetCode problem |
| Network Delay Time | Medium | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Cheapest Flights Within K Stops | Medium | Link to LeetCode problem |
| Swim in Rising Water | Hard | Link to LeetCode problem |
| Alien Dictionary | Hard | Link to LeetCode problem |
| Path with Maximum Probability | Medium | Link to LeetCode problem |
| Design Graph With Shortest Path Calculator | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Climbing Stairs | Easy | Link to LeetCode problem |
| Min Cost Climbing Stairs | Easy | Link to LeetCode problem |
| House Robber | Medium | Link to LeetCode problem |
| House Robber II | Medium | Link to LeetCode problem |
| Longest Palindromic Substring | Medium | Link to LeetCode problem |
| Palindromic Substrings | Medium | Link to LeetCode problem |
| Decode Ways | Medium | Link to LeetCode problem |
| Coin Change | Medium | Link to LeetCode problem |
| Maximum Product Subarray | Medium | Link to LeetCode problem |
| Word Break | Medium | Link to LeetCode problem |
| Longest Increasing Subsequence | Medium | Link to LeetCode problem |
| Partition Equal Subset Sum | Medium | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Unique Paths | Medium | Link to LeetCode problem |
| Longest Common Subsequence | Medium | Link to LeetCode problem |
| Best Time to Buy and Sell Stock with Cooldown | Medium | Link to LeetCode problem |
| Coin Change II | Medium | Link to LeetCode problem |
| Target Sum | Medium | Link to LeetCode problem |
| Interleaving String | Medium | Link to LeetCode problem |
| Edit Distance | Hard | Link to LeetCode problem |
| Distinct Subsequences | Hard | Link to LeetCode problem |
| Burst Balloons | Hard | Link to LeetCode problem |
| Regular Expression Matching | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Maximum Subarray | Medium | Link to LeetCode problem |
| Jump Game | Medium | Link to LeetCode problem |
| Jump Game II | Medium | Link to LeetCode problem |
| Gas Station | Medium | Link to LeetCode problem |
| Hand of Straights | Medium | Link to LeetCode problem |
| Merge Triplets to Form Target Triplet | Medium | Link to LeetCode problem |
| Partition Labels | Medium | Link to LeetCode problem |
| Valid Parenthesis String | Medium | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Insert Interval | Medium | Link to LeetCode problem |
| Merge Intervals | Medium | Link to LeetCode problem |
| Non-overlapping Intervals | Medium | Link to LeetCode problem |
| Meeting Rooms | Easy | Link to LeetCode problem |
| Meeting Rooms II | Medium | Link to LeetCode problem |
| Minimum Interval to Include Each Query | Hard | Link to LeetCode problem |
| Problem | Difficulty | Link |
|---|---|---|
| Single Number | Easy | Link to LeetCode problem |
| Number of 1 Bits | Easy | Link to LeetCode problem |
| Counting Bits | Easy | Link to LeetCode problem |
| Reverse Bits | Easy | Link to LeetCode problem |