Design a tiny URL or URL shortener - Coddicted

Design a tiny URL or URL shortener 2

Title: How to design a tiny URL or URL shortener? Source: www.geeksforgeeks.org

How to design a system that takes big URLs like “http://www.geeksforgeeks.org/count-sum-of-digits-in-numbers-from-1-to-n/” and converts them into a short 6 character URL. It is given that URLs are stored in database and every URL has an associated integer id.

One important thing to note is, the long url should also be uniquely identifiable from short url. So we need a Bijective Function

Java solution


Back To Top
Rate this post

2 thoughts on “Design a tiny URL or URL shortener

  1. Reply cottontshirts.net Apr 5,2016 7:42 pm

    Currently it sounds like Movable Type is the top blogging platform available right now.
    (from what I’ve read) Is that what you’re using on your blog?

    • Reply Anupam Jain Apr 10,2016 9:28 am

      we are not sure what you mean by “Movable Type” platform? Could you please be a little bit more elaborate?

Leave a Reply