All Posts

1582 articles

dsa5 min read

Design URL Shortener (TinyURL) — Hashing and Encoding

Design a URL shortener like TinyURL using base-62 encoding with an incrementing counter or random key generation. A classic system design coding problem asked at Amazon, Google, and Bitly to test encoding, collision handling, and hashmap design.

Read →
dsa5 min read

Design Parking System — Counter-Based Slot Management

Design a parking system with big, medium, and small spaces. O(1) addCar checks slot availability and decrements the counter—a warm-up problem testing array indexing and capacity management in FAANG phone screens.

Read →
Page 158 of 317