bobbydwise1 / dcc-20190905

Daily Coding Problem - Weblink String Hasher*

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daily Coding Problem 2019-09-05

Good morning! Here's your coding interview problem for today.

This problem was asked by Microsoft.

Implement a URL shortener with the following methods:

shorten(url), which shortens the url into a six-character alphanumeric string, such as zLg6wl. restore(short), which expands the shortened string into the original url. If no such shortened string exists, return null.

Hint: What if we enter the same URL twice?

About

Daily Coding Problem - Weblink String Hasher*


Languages

Language:HTML 65.2%Language:JavaScript 34.8%