Skip to content
NEW TO SYSTEM DESIGN FORGE?
STEP 1START HERE

ScaleDojo Learn: Forge Fundamentals

Solve 76 production engineering architecture challenges based on real infrastructure setups at top tech companies.

2

Or read the history behind it

The Infrastructure Chronicles - Production systems at scale

ACTIVE BOUNTY EVENT
9d left
๐Ÿ†

The Scale Wars

25% off on all challenges

QUEST PROGRESS0 / 7 COMPLETED
๐ŸŽ 25% Off
LEADERBOARDLIVE

Compare stats and compete with top...

View

Forge Algorithm Lab

Progressive System Design Curriculum

0/76
COMPLETED
2 of 22 levels unlockedยทStart with Level 1 to begin your journey

Solve levels sequentially - each clear unlocks the next challenge

2/22
ACCESSIBLE
Architect Feature: Want to bypass sequential unlock? Go to your Profile and enable Architect's Sandbox.

Tier 1

TIER PROGRESS0/10
1

#1 Big-O Detective

Warm-Up
๐Ÿ›๏ธ Every company

Annotate code with time complexity and explain why

big-o
time-complexity
fundamentals
Standard Challenge
Start Level โ†’

#2 Stack from Scratch

Easy
๐Ÿ›๏ธ Amazon, Microsoft

Implement push, pop, peek - understand why O(1) matters

stack
data-structures
o(1)
Standard Challenge
Locked

#3 Queue from Scratch

Easy
๐Ÿ›๏ธ Google, Meta

Circular buffer - the right way to build a queue

queue
circular-buffer
o(1)
data-structures
Standard Challenge
Locked

#4 HashMap from Scratch

Medium
๐Ÿ›๏ธ Google, Amazon

Build a hashmap with separate chaining collision resolution

hashmap
hashing
separate-chaining
collision
Standard Challenge
Locked

#5 Linked List Fundamentals

Easy
๐Ÿ›๏ธ Meta, Google

Reverse a linked list - the interview warm-up that trips people

linked-list
reversal
pointers
Standard Challenge
Locked

#6 Binary Search Mastery

Medium
๐Ÿ›๏ธ Meta, Stripe

Standard search, then rotated array - the real interview variant

binary-search
sorted-array
rotated-array
divide-and-conquer
Standard Challenge
Locked

#7 Recursion & Memoization

Medium
๐Ÿ›๏ธ Google, Amazon

From exponential to linear - the power of caching subproblems

recursion
memoization
dynamic-programming
caching
Standard Challenge
Locked

#8 Min-Heap Implementation

Medium
๐Ÿ›๏ธ Amazon, Uber

Build a heap from scratch - the engine behind task schedulers

heap
priority-queue
heapify
top-k
Standard Challenge
Locked

#9 Two Pointers & Sliding Window

Medium
๐Ÿ›๏ธ Meta, Airbnb

The pattern behind 50% of array interview problems

two-pointers
sliding-window
array
Standard Challenge
Locked

#10 Tier 1 Boss: DataStructure Toolkit

Boss
๐Ÿ›๏ธ Google, Meta

Combine everything - stack, queue, hashmap, and heap in one class

boss
stack
hashmap
design
Standard Challenge
Locked

Tier 2

TIER PROGRESS0/12

#11 LRU Cache

Medium
๐Ÿ›๏ธ Google, Meta, Amazon

The most asked cache question - O(1) get and put

lru
cache
doubly-linked-list
hashmap
Standard Challenge
Locked

#12 LFU Cache

Hard
๐Ÿ›๏ธ Stripe, Google

Evict the LEAST frequently used - smarter than LRU

lfu
cache
frequency
hard
Standard Challenge
Locked

#13 Bloom Filter

Hard
๐Ÿ›๏ธ Google, Cassandra team

Probabilistic membership - "definitely no" or "probably yes"

bloom-filter
probabilistic
hashing
space-efficient
Standard Challenge
Locked

#14 Consistent Hashing

Hard
๐Ÿ›๏ธ Amazon (DynamoDB), Discord

Add/remove servers without resharding everything

consistent-hashing
distributed
load-balancing
virtual-nodes
Standard Challenge
Locked

#15 TTL-based Cache

Medium
๐Ÿ›๏ธ Every web company

Expire entries by time - the foundation of session management

ttl
cache
expiration
sessions
Standard Challenge
Locked

#16 Write-Through vs Write-Behind Cache

Medium
๐Ÿ›๏ธ Stripe, Pinterest

Understand consistency tradeoffs through implementation

write-through
write-behind
cache
consistency
Standard Challenge
Locked

#17 Count-Min Sketch

Hard
๐Ÿ›๏ธ TikTok, Twitter

Count frequencies in data streams using constant memory

count-min-sketch
streaming
probabilistic
frequency
Standard Challenge
Locked

#18 Cache Stampede Prevention

Hard
๐Ÿ›๏ธ Pinterest, Twitter

Mutex lock + probabilistic early expiry

stampede
thundering-herd
mutex
locking
Standard Challenge
Locked

#19 Two-Level Cache (L1 + L2)

Medium
๐Ÿ›๏ธ Netflix, Cloudflare

In-memory hot cache + larger persistent cache

multi-level-cache
l1-l2
cache-hierarchy
Standard Challenge
Locked

#20 Cache Eviction Policy Benchmark

Medium
๐Ÿ›๏ธ Systems interview standard

Compare FIFO, LRU, LFU - choose the right one for the job

eviction-policies
fifo
lru
lfu
Standard Challenge
Locked

#21 Memory Pool Allocator

Expert
๐Ÿ›๏ธ Database internals

Custom slab allocator - why databases avoid malloc

memory-allocator
slab
pool
performance
Standard Challenge
Locked

#22 Tier 2 Boss: ProductionCache

Boss
๐Ÿ›๏ธ Google, Stripe

LRU + TTL + stampede prevention + telemetry in 50 lines

boss
production
cache
design
Standard Challenge
Locked

Tier 3

TIER PROGRESS0/13

#23 Token Bucket Rate Limiter

Medium
๐Ÿ›๏ธ Stripe, Cloudflare, AWS

The industry standard - Cloudflare, Stripe, AWS all use this

rate-limiter
token-bucket
api-gateway
throttling
Standard Challenge
Locked

#24 Sliding Window Rate Limiter

Hard
๐Ÿ›๏ธ Stripe, GitHub

Precise rate limiting without fixed window boundary bugs

rate-limiter
sliding-window
api-gateway
Standard Challenge
Locked

#25 Circuit Breaker

Hard
๐Ÿ›๏ธ Netflix, Uber

The Netflix pattern - fail fast, recover gracefully

circuit-breaker
resilience
state-machine
microservices
Standard Challenge
Locked

#26 Retry with Exponential Backoff

Medium
๐Ÿ›๏ธ AWS, Google Cloud

Handle transient failures without overwhelming the service

retry
exponential-backoff
jitter
resilience
Standard Challenge
Locked

#27 Thread-Safe Connection Pool

Hard
๐Ÿ›๏ธ Any backend with a database

Semaphore-based DB connection pooling

connection-pool
semaphore
threading
database
Standard Challenge
Locked

#28 Caesar Cipher Codex

Easy
๐Ÿ›๏ธ Classic cryptography foundation

Build the ancient encryption that started it all

cipher
cryptography
modular-arithmetic
strings
Standard Challenge
Locked

#29 Vigenere Vault

Medium
๐Ÿ›๏ธ Historical cryptography - foundation of stream ciphers

The unbreakable cipher (for 300 years)

cipher
cryptography
vigenere
strings
Standard Challenge
Locked

#30 SHA-256 Sentinel

Medium
๐Ÿ›๏ธ Bitcoin, TLS, Git, Password Storage

Implement a cryptographic hash from scratch

sha256
hashing
cryptography
bitcoin
Standard Challenge
Locked

#31 HMAC Guardian

Medium
๐Ÿ›๏ธ AWS, Stripe, Twilio (webhook signatures)

Message authentication that prevents tampering

hmac
cryptography
webhook
authentication
Standard Challenge
Locked

#32 JWT Journeyman

Hard
๐Ÿ›๏ธ Every web app with authentication

Build JSON Web Tokens from scratch - no libraries

jwt
authentication
cryptography
hmac
Standard Challenge
Locked

#33 Password Vault

Medium
๐Ÿ›๏ธ Every app with user accounts

Bcrypt, salting, and why MD5 passwords leak

bcrypt
password
cryptography
security
Standard Challenge
Locked

#34 RSA Reckoning

Hard
๐Ÿ›๏ธ TLS/HTTPS, SSH, PGP

Implement RSA key generation - the math of internet trust

rsa
cryptography
public-key
math
Standard Challenge
Locked

#35 Tier 3 Boss: API Gateway

Boss
๐Ÿ›๏ธ Cloudflare, AWS API Gateway

Token bucket + circuit breaker + retry in one class

boss
api-gateway
rate-limiter
circuit-breaker
Standard Challenge
Locked

Tier 4

TIER PROGRESS0/13

#36 Symmetric Encryption (XOR)

Easy
๐Ÿ›๏ธ Security basics

Implement the basic XOR cipher for symmetric encryption

cryptography
symmetric
xor
Standard Challenge
Locked

#37 Diffie-Hellman Exchange

Medium
๐Ÿ›๏ธ SSH / TLS team

Calculate shared secret key securely

cryptography
key-exchange
math
Standard Challenge
Locked

#38 PBKDF2 Key Deriver

Medium
๐Ÿ›๏ธ Vault systems

Derive secure keys from user passwords

cryptography
hashing
security
Standard Challenge
Locked

#39 Password Hashing with Salt

Medium
๐Ÿ›๏ธ Every company with user accounts

Bcrypt simulation - how passwords are actually stored

password
hashing
salt
bcrypt
Standard Challenge
Locked

#40 SQL Injection Sanitizer

Easy
๐Ÿ›๏ธ Web security basics

Escape inputs to prevent SQL Injection attacks

security
sql
sanitization
Standard Challenge
Locked

#41 CORS Policy Validator

Easy
๐Ÿ›๏ธ APIs team

Verify origin matching rules

security
cors
web
Standard Challenge
Locked

#42 IP Rate Limiter

Medium
๐Ÿ›๏ธ Security Gateway

Simple slide window rate limiting per IP

security
rate-limiting
ip
Standard Challenge
Locked

#43 JWT from Scratch

Hard
๐Ÿ›๏ธ Stripe, Auth0, every web company

Header.Payload.Signature - implement without libraries

jwt
hmac
base64
authentication
Standard Challenge
Locked

#44 Secure Session Cookie

Medium
๐Ÿ›๏ธ Web Application Frameworks

Prevent session tampering using signed cookies

security
session
hmac
Standard Challenge
Locked

#45 CSRF Token Validator

Medium
๐Ÿ›๏ธ Web security

Verify anti-CSRF request tokens

security
csrf
web
Standard Challenge
Locked

#46 XSS Protection Filter

Easy
๐Ÿ›๏ธ Frontend security

HTML escape user inputs

security
xss
escaping
Standard Challenge
Locked

#47 RBAC Access Control

Medium
๐Ÿ›๏ธ Enterprise Admin Panel

Access control checker

security
rbac
permissions
Standard Challenge
Locked

#48 Tier 4 Boss: MiniAuthService

Boss
๐Ÿ›๏ธ Auth0, Okta, Stripe

bcrypt + JWT + HMAC API keys + token validation

boss
auth
jwt
bcrypt
Standard Challenge
Locked

Tier 5

TIER PROGRESS0/12

#49 Vector Clocks

Hard
๐Ÿ›๏ธ Amazon (DynamoDB), Riak

Track causality in distributed systems

vector-clocks
causality
distributed
conflict-resolution
Standard Challenge
Locked

#50 Lamport Timestamps

Medium
๐Ÿ›๏ธ Distributed logs

Maintain causality using Lamport Logical Clocks

distributed
clock
lamport
Standard Challenge
Locked

#51 Consistent Hashing Ring

Medium
๐Ÿ›๏ธ Distributed Caching

Assign keys to nodes using hashing

distributed
sharding
hashing
Standard Challenge
Locked

#52 Bully Leader Election

Medium
๐Ÿ›๏ธ Distributed consensus basics

Choose the highest ID node as coordinator

distributed
election
consensus
Standard Challenge
Locked

#53 Write-Ahead Log (WAL)

Hard
๐Ÿ›๏ธ PostgreSQL, MySQL, RocksDB

How databases survive crashes - log first, apply second

wal
crash-recovery
durability
database-internals
Standard Challenge
Locked

#54 Redlock Distributed Lock

Hard
๐Ÿ›๏ธ Redis locking team

Acquire consensus lock across replicas

distributed
locking
consensus
Standard Challenge
Locked

#55 Two-Phase Commit (2PC)

Hard
๐Ÿ›๏ธ Distributed Databases team

Coordinate atomic transaction commits

distributed
2pc
transactions
Standard Challenge
Locked

#56 Quorum Reads & Writes

Hard
๐Ÿ›๏ธ Amazon (DynamoDB), Cassandra team

R + W > N - the math behind eventual consistency

quorum
consistency
dynamo
cassandra
Standard Challenge
Locked

#57 Raft Log Replication

Hard
๐Ÿ›๏ธ Kubernetes etcd team

Replicate log entries to cluster members

raft
consensus
replication
Standard Challenge
Locked

#58 Gossip Protocol

Medium
๐Ÿ›๏ธ Cassandra health check team

Sync node list statuses periodically

distributed
gossip
p2p
Standard Challenge
Locked

#59 MapReduce Coordinator

Hard
๐Ÿ›๏ธ Hadoop / Spark team

Coordinate word counts with Map and Reduce stages

distributed
mapreduce
parallel
Standard Challenge
Locked

#60 Tier 5 Boss: MiniDistributedKVStore

Boss
๐Ÿ›๏ธ Amazon, Cassandra team

Consistent hashing + quorum + gossip + WAL in one

boss
capstone
distributed
consistent-hashing
Standard Challenge
Locked

Tier 6

TIER PROGRESS0/7

#61 Sort It Yourself

Medium
๐Ÿ›๏ธ Every company

Merge sort and quicksort - the two divide-and-conquer sorts everyone should be able to write

sorting
merge-sort
quicksort
divide-and-conquer
Standard Challenge
Locked

#62 Counting Sort & Radix Sort

Easy
๐Ÿ›๏ธ High-frequency trading, data pipelines

Sorting without ever comparing two elements

counting-sort
radix-sort
sorting
non-comparison
Standard Challenge
Locked

#63 Binary Search Tree from Scratch

Medium
๐Ÿ›๏ธ Every company

Insert, search, and delete - the three operations every BST needs

bst
binary-search-tree
trees
recursion
Standard Challenge
Locked

#64 Tree Traversal Toolkit

Medium
๐Ÿ›๏ธ Every company

Pre-order, in-order, post-order, and level-order - and why each exists

trees
traversal
bfs
recursion
Standard Challenge
Locked

#65 Trie from Scratch

Medium
๐Ÿ›๏ธ Google, Amazon

The prefix tree behind every autocomplete box you've ever used

trie
prefix-tree
strings
autocomplete
Standard Challenge
Locked

#66 Union-Find (Disjoint Set)

Medium
๐Ÿ›๏ธ Distributed systems, network analysis

Tracking which things are connected, without ever redrawing the whole graph

union-find
disjoint-set
path-compression
graphs
Standard Challenge
Locked

#67 Tier 6 Boss: Search Engine Autocomplete

Boss
๐Ÿ›๏ธ Google, Amazon

Combine what you've built into one ranked-suggestion engine

boss
trie
sorting
design
Standard Challenge
Locked

Tier 7

TIER PROGRESS0/9

#68 Backtracking Basics: Subsets & Permutations

Medium
๐Ÿ›๏ธ Every company

Choose, explore, un-choose - the template behind every brute-force search

backtracking
subsets
permutations
recursion
Standard Challenge
Locked

#69 N-Queens Solver

Hard
๐Ÿ›๏ธ Every company

Backtracking with pruning - cutting off bad branches before you fully explore them

backtracking
n-queens
pruning
constraint-satisfaction
Standard Challenge
Locked

#70 1D Dynamic Programming

Medium
๐Ÿ›๏ธ Every company

Bottom-up tabulation, from climbing stairs to coin change

dynamic-programming
tabulation
coin-change
Standard Challenge
Locked

#71 2D Dynamic Programming

Hard
๐Ÿ›๏ธ Every company

Grid-shaped subproblems - longest common subsequence and knapsack

dynamic-programming
lcs
knapsack
2d-dp
Standard Challenge
Locked

#72 Greedy Algorithms

Medium
๐Ÿ›๏ธ Scheduling systems, payment systems

When the locally-best choice is also the globally-best one

greedy
interval-scheduling
activity-selection
Standard Challenge
Locked

#73 Graph Representations & BFS/DFS

Medium
๐Ÿ›๏ธ Every company

Representing relationships, and visiting every node exactly once

graphs
bfs
dfs
adjacency-list
Standard Challenge
Locked

#74 Dijkstra's Shortest Path

Hard
๐Ÿ›๏ธ Maps, logistics, networking

Finding the cheapest route through a weighted graph

dijkstra
shortest-path
heap
graphs
Standard Challenge
Locked

#75 Topological Sort & Cycle Detection

Medium
๐Ÿ›๏ธ Build systems, task schedulers

Ordering tasks so every dependency comes before what depends on it

topological-sort
kahns-algorithm
cycle-detection
dag
Standard Challenge
Locked

#76 Tier 7 Boss: RouteOptimizer

Boss
๐Ÿ›๏ธ Logistics, ride-sharing, maps

Shortest paths and budget-constrained reachability, in one delivery-routing engine

boss
capstone
dijkstra
graphs
Standard Challenge
Locked