Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

insotriplesix/url-shortener

Repository files navigation

URL shortener

Create an application (not web, in memory) that can handle:

  1. Shortening of original URL by using provided SEO keyword. Keyword should be at max 20 symbols

Input: Original URL: https://blog.mysite.com/cool-article, Keyword: BEST-ARTICLE

Output: https://short.en/BEST-ARTICLE

  1. Shortening of original URL, without provided keyword. Randomly generate 5 alpha-numeric keyword

Input: Original URL: https://blog.mysite.com/another-article

Output: https://short.en/Pq34r

  1. Retrieve original URL by shorten URL

Input: https://short.en/Pq34r

Output: https://blog.mysite.com/another-article

About

Simple URL shortener, just 4 fun() { ... }

Topics

Resources

Stars

Watchers

Forks

Languages