URL Shortener Service (CLI)

Asked at Shopify · Coding Questions · Difficulty: Medium · Last asked May 10, 2026

Implement a local, runnable URL shortener (encode a long URL to a short code and resolve it back), exposed as a CLI/API. Lightweight on the algorithm but heavy on the design conversation: encoding scheme, collision handling, storage, capacity estimation, and testing.

Loading the problem…