coding-problem10 min readIntermediate
Top 20 Coding Problems Set
A structured coding problem set to prepare for product-based company interviews.
DSALeetCodeMock Prep
Problem buckets
Arrays and strings
- Two Sum
- Longest Substring Without Repeating Characters
- Product of Array Except Self
Sliding window and pointers
- Best Time to Buy and Sell Stock
- Minimum Size Subarray Sum
- 3Sum
Trees and graphs
- Binary Tree Level Order Traversal
- Lowest Common Ancestor of BST
- Number of Islands
Dynamic programming
- Climbing Stairs
- House Robber
- Coin Change
How to practice this set
- Solve each problem in 35 to 45 minutes.
- Write one brute force and one optimized solution.
- Keep mistakes in a note file.
- Revisit weak patterns every 3 days.
Interview simulation checklist
- Explain approach before coding.
- State complexity without being asked.
- Test with edge cases.
- Refactor variable names for readability.