Sale
Summer Offer: $190/yr $99/yr
00 : 00 : 00 : 00
Get this deal
System Design Mid system_design

Design a URL Shortener

Background: A URL shortener takes a long URL and converts it into a shorter, unique URL that redirects to the original URL. This process makes sharing URLs easier, especially on platforms with character limits.
Problem Statement: Design a URL shortening service with the following functionalities: shorten(url: String): String to shorten a URL and retrieve(shortened: String): String to retrieve the original URL. Focus on scalability, storage, and handle issues like collisions.
Constraints: The service should support up to billions of URLs and provide low latency.
Suggested Answer

Trusted by 100+ professionals preparing for interviews

Trusted by 100+ professionals 50+ Company Question Banks 5+ Supported Languages

Practice More Questions Like This

Generate unlimited interview questions with structured answers, code runner, and AI-powered walkthroughs.

Get Started Free

More System Design Interview Prep

LeetCode #75 - Sort Colors
Coding Round 1 · Mid
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Link copied to clipboard