DDSA Solutions

Design

27 problems · 18 with full explanations

2 Easy10 Medium1 Hard
Design problems ask you to implement a data structure or system with specific API contracts. Common designs: LRU Cache (HashMap + doubly linked list), LFU Cache, Min Stack, Iterator, and streaming median. Focus on the time complexity required for each operation.

How to practice

To practice Design problems effectively, start with the Easy problems listed below, trace through each solution on paper, then re-implement without looking. When you can recognise the design pattern within 30 seconds of reading a new problem, move on to Medium difficulty. Use the related topic pages and our study guide for a structured progression.

Open the full study guide →

Start here (Easy + explained)

All Design problems