Coding & SQL Practice Problems
80 interactive interview problems with in-browser execution in 8 languages, an isolated SQL database sandbox, and AI code review with optimal-solution breakdowns.
Open the Practice LabPractice Explaining Them Out Loud
Algorithm Problems
- Valid Palindrome — Easy Two Pointers · run in 8 languages, study the optimal approach
- Two Sum — Easy Hash Map · run in 8 languages, study the optimal approach
- Valid Parentheses — Easy Stack · run in 8 languages, study the optimal approach
- Valid Anagram — Easy Hash Map / Counting · run in 8 languages, study the optimal approach
- String Compression — Easy Two Pointers / String · run in 8 languages, study the optimal approach
- Currency Conversion — Medium Graph / BFS · run in 8 languages, study the optimal approach
- Best Time to Buy and Sell Stock — Easy Greedy / Array · run in 8 languages, study the optimal approach
- Binary Search — Easy Binary Search · run in 8 languages, study the optimal approach
- Climbing Stairs — Easy Dynamic Programming · run in 8 languages, study the optimal approach
- Merge Sorted Arrays — Easy Two Pointers · run in 8 languages, study the optimal approach
- Maximum Subarray — Medium Kadane / Dynamic Programming · run in 8 languages, study the optimal approach
- Longest Common Prefix — Easy String / Scanning · run in 8 languages, study the optimal approach
- Linked List Cycle — Easy Linked List · run in 8 languages, study the optimal approach
- Implement Queue using Stacks — Easy Stack · run in 8 languages, study the optimal approach
- First Bad Version — Easy Binary Search · run in 8 languages, study the optimal approach
- Ransom Note — Easy Hash Table · run in 8 languages, study the optimal approach
- Invert Binary Tree — Easy Binary Tree · run in 8 languages, study the optimal approach
- Flood Fill — Easy Graph / BFS · run in 8 languages, study the optimal approach
- Lowest Common Ancestor of a BST — Easy Binary Search Tree · run in 8 languages, study the optimal approach
- Balanced Binary Tree — Easy Binary Tree · run in 8 languages, study the optimal approach
- Longest Palindrome — Easy String · run in 8 languages, study the optimal approach
- Reverse Linked List — Easy Linked List · run in 8 languages, study the optimal approach
- Majority Element — Easy Array · run in 8 languages, study the optimal approach
- Add Binary — Easy Binary / Bit Manipulation · run in 8 languages, study the optimal approach
- Diameter of Binary Tree — Easy Binary Tree · run in 8 languages, study the optimal approach
- Middle of the Linked List — Easy Linked List · run in 8 languages, study the optimal approach
- Maximum Depth of Binary Tree — Easy Binary Tree · run in 8 languages, study the optimal approach
- Contains Duplicate — Easy Array · run in 8 languages, study the optimal approach
- Merge Two Sorted Lists — Easy Linked List · run in 8 languages, study the optimal approach
- Insert Interval — Medium Array · run in 8 languages, study the optimal approach
- 01 Matrix — Medium Graph / BFS · run in 8 languages, study the optimal approach
- K Closest Points to Origin — Medium Heap · run in 8 languages, study the optimal approach
- Longest Substring Without Repeating Characters — Medium String / Sliding Window · run in 8 languages, study the optimal approach
- 3Sum — Medium Array / Two Pointers · run in 8 languages, study the optimal approach
- Binary Tree Level Order Traversal — Medium Binary Tree / BFS · run in 8 languages, study the optimal approach
- Clone Graph — Medium Graph · run in 8 languages, study the optimal approach
- Evaluate Reverse Polish Notation — Medium Stack · run in 8 languages, study the optimal approach
- Course Schedule — Medium Graph / Topological Sort · run in 8 languages, study the optimal approach
- Implement Trie (Prefix Tree) — Medium Trie · run in 8 languages, study the optimal approach
- Coin Change — Medium Dynamic Programming · run in 8 languages, study the optimal approach
- Product of Array Except Self — Medium Array · run in 8 languages, study the optimal approach
- Min Stack — Medium Stack · run in 8 languages, study the optimal approach
- Validate Binary Search Tree — Medium Binary Search Tree · run in 8 languages, study the optimal approach
- Number of Islands — Medium Graph / DFS · run in 8 languages, study the optimal approach
- Rotting Oranges — Medium Graph / BFS · run in 8 languages, study the optimal approach
- Search in Rotated Sorted Array — Medium Binary Search · run in 8 languages, study the optimal approach
- Combination Sum — Medium Recursion / Backtracking · run in 8 languages, study the optimal approach
- Permutations — Medium Recursion / Backtracking · run in 8 languages, study the optimal approach
- Merge Intervals — Medium Array / Intervals · run in 8 languages, study the optimal approach
- Lowest Common Ancestor of a Binary Tree — Medium Binary Tree · run in 8 languages, study the optimal approach
- Time Based Key-Value Store — Medium Binary Search · run in 8 languages, study the optimal approach
- Accounts Merge — Medium Graph / Disjoint Set · run in 8 languages, study the optimal approach
- Sort Colors — Medium Array / Two Pointers · run in 8 languages, study the optimal approach
- Word Break — Medium Dynamic Programming · run in 8 languages, study the optimal approach
- Partition Equal Subset Sum — Medium Dynamic Programming · run in 8 languages, study the optimal approach
- String to Integer (atoi) — Medium String · run in 8 languages, study the optimal approach
- Spiral Matrix — Medium Matrix · run in 8 languages, study the optimal approach
- Subsets — Medium Recursion / Backtracking · run in 8 languages, study the optimal approach
- Binary Tree Right Side View — Medium Binary Tree / BFS · run in 8 languages, study the optimal approach
- Longest Palindromic Substring — Medium String / DP · run in 8 languages, study the optimal approach
- Unique Paths — Medium Dynamic Programming · run in 8 languages, study the optimal approach
- Construct Binary Tree from Preorder and Inorder Traversal — Medium Binary Tree · run in 8 languages, study the optimal approach
- Container With Most Water — Medium Array / Two Pointers · run in 8 languages, study the optimal approach
- Letter Combinations of a Phone Number — Medium Recursion / Backtracking · run in 8 languages, study the optimal approach
- Word Search — Medium Graph / Backtracking · run in 8 languages, study the optimal approach
- Find All Anagrams in a String — Medium String / Sliding Window · run in 8 languages, study the optimal approach
- Minimum Height Trees — Medium Graph / Topological Sort · run in 8 languages, study the optimal approach
- Task Scheduler — Medium Heap / Greedy · run in 8 languages, study the optimal approach
- LRU Cache — Medium Linked List / Design · run in 8 languages, study the optimal approach
- Kth Smallest Element in a BST — Medium Binary Search Tree · run in 8 languages, study the optimal approach
- Minimum Window Substring — Hard String / Sliding Window · run in 8 languages, study the optimal approach
- Serialize and Deserialize Binary Tree — Hard Binary Tree · run in 8 languages, study the optimal approach
- Trapping Rain Water — Hard Array / Two Pointers · run in 8 languages, study the optimal approach
- Find Median from Data Stream — Hard Heap · run in 8 languages, study the optimal approach
- Word Ladder — Hard Graph / BFS · run in 8 languages, study the optimal approach
SQL Database Problems
- Second Highest Salary — Medium Database · run in 8 languages, study the optimal approach
- Duplicate Emails — Easy Database · run in 8 languages, study the optimal approach
- Customers Who Never Order — Easy Database · run in 8 languages, study the optimal approach
- Department Highest Salary — Medium Database · run in 8 languages, study the optimal approach
- Rising Temperature — Easy Database · run in 8 languages, study the optimal approach
Every problem includes a full optimal solution with time and space complexity analysis, plus the follow-up questions interviewers actually ask next. Then take it to the voice interview simulator and practice explaining your approach under pressure.