Design Problems for Coding Interviews
17 Design problems from real coding interviews, each with test cases you can run online. By difficulty they split into 6 basic, 11 intermediate and 0 advanced. The companies that ask them most often are Amazon, Google, Meta, Apple.
Solve a few problems of each level, name the pattern after each one and revisit the ones that needed a hint a week later. Practise stating the time and space complexity and the edge cases before you code.
Coding problems
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Snapshot Array (Intermediate)
- Hit Counter (Intermediate)
- Rate Limiter Sliding Log (Basic)
- Design Linked List Operations (Intermediate)
- Min Stack Operations (Basic)
- Design Circular Queue (Intermediate)
- Design Circular Deque (Intermediate)
- Logger Rate Limiter (Basic)
- Design HashMap (Basic)
- Design Bitset (Intermediate)
- Design Parking System (Basic)
- Design Underground Totals (Intermediate)
- Page Replacement LRU Faults (Intermediate)
- LRU Cache Hit Count (Intermediate)
- Token Bucket Accepted Requests (Intermediate)
Related
Frequently asked questions
How do I get good at design problems?
Practise by level, name the pattern after you solve each problem and review the ones you needed hints for. The list is ordered so you can start with the basic ones.
Can I run design problems online here?
Yes. Each problem opens in an editor that runs your code against test cases in Java, Python, C++, Go, JavaScript and more.