Design | LeetCode Problems

83 Design solutions to LeetCode solutions.

Design Problems View all solutions →

LRU Cache

#146 Medium

Min Stack

#155 Medium

Two Sum III - Data structure design

#170 Easy

Binary Search Tree Iterator

#173 Medium

Implement Trie (Prefix Tree)

#208 Medium

Design Add and Search Words Data Structure

#211 Medium

Implement Stack using Queues

#225 Easy

Implement Queue using Stacks

#232 Easy

Shortest Word Distance II

#244 Medium

Peeking Iterator

#284 Medium

Find Median from Data Stream

#295 Hard

Serialize and Deserialize Binary Tree

#297 Hard

Range Sum Query - Immutable

#303 Easy

Range Sum Query 2D - Immutable

#304 Medium

Range Sum Query - Mutable

#307 Medium

Flatten Nested List Iterator

#341 Medium

Data Stream as Disjoint Intervals

#352 Hard

Design Twitter

#355 Medium

Insert Delete GetRandom O(1)

#380 Medium

Insert Delete GetRandom O(1) - Duplicates allowed

#381 Hard

Shuffle an Array

#384 Medium

All O`one Data Structure

#432 Hard

Serialize and Deserialize BST

#449 Medium

LFU Cache

#460 Hard

Encode and Decode TinyURL

#535 Medium

Design Circular Queue

#622 Medium

Design Circular Deque

#641 Medium

Implement Magic Dictionary

#676 Medium

Map Sum Pairs

#677 Medium

Kth Largest Element in a Stream

#703 Easy

Design HashSet

#705 Easy

Design HashMap

#706 Easy

Design Linked List

#707 Medium

Range Module

#715 Hard

My Calendar I

#729 Medium

My Calendar II

#731 Medium

My Calendar III

#732 Hard

Prefix and Suffix Search

#745 Hard

Exam Room

#855 Medium

Maximum Frequency Stack

#895 Hard

RLE Iterator

#900 Medium

Online Stock Span

#901 Medium

Online Election

#911 Medium

Complete Binary Tree Inserter

#919 Medium

Number of Recent Calls

#933 Easy

Time Based Key-Value Store

#981 Medium

Stream of Characters

#1032 Hard

Snapshot Array

#1146 Medium

Online Majority Element In Subarray

#1157 Hard

Dinner Plate Stacks

#1172 Hard

Design Skiplist

#1206 Hard

Find Elements in a Contaminated Binary Tree

#1261 Medium

Iterator for Combination

#1286 Medium

Tweet Counts Per Frequency

#1348 Medium

Product of the Last K Numbers

#1352 Medium

Apply Discount Every n Orders

#1357 Medium

Design a Stack With Increment Operation

#1381 Medium

Design Underground System

#1396 Medium

Design Browser History

#1472 Medium

Subrectangle Queries

#1476 Medium

Kth Ancestor of a Tree Node

#1483 Hard

Throne Inheritance

#1600 Medium

Design Parking System

#1603 Easy

Fancy Sequence

#1622 Hard

Design an Ordered Stream

#1656 Easy

Design Front Middle Back Queue

#1670 Medium

Design Authentication Manager

#1797 Medium

Finding MK Average

#1825 Hard

Seat Reservation Manager

#1845 Medium

Finding Pairs With a Certain Sum

#1865 Medium

Design Movie Rental System

#1912 Hard

Operations on Tree

#1993 Medium

Detect Squares

#2013 Medium

Simple Bank System

#2043 Medium

Walking Robot Simulation II

#2069 Medium

Range Frequency Queries

#2080 Medium

Design Bitset

#2166 Medium

Encrypt and Decrypt Strings

#2227 Hard

Design an ATM Machine

#2241 Medium

Design a Text Editor

#2296 Hard

Smallest Number in Infinite Set

#2336 Medium

Design a Number Container System

#2349 Medium

Design Memory Allocator

#2502 Medium