Design a tiny URL or URL shortener - Coddicted

Design a tiny URL or URL shortener 4

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

4 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?

  2. Reply escort antalya Nov 16,2016 2:38 pm

    Hey there this is somewhat of off topic but I was wondering if
    blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding skills so I wanted to get
    guidance from someone with experience. Any
    help would be greatly appreciated!

    • Reply Anupam Jain Jul 4,2017 12:56 pm

      Hi,

      Yes blogs do use WYSIWYG editors. All popular ones, namely: Blogspot, WordPress etc. have such editors.

      -Thanks
      Coddicted

Leave a Reply