[CentralOH] Python Problem for DoJo Tonight

Travis Risner deeppunster at gmail.com
Fri Mar 15 16:25:28 EDT 2019


Hi folks,

Mike Rehner has published a solution (see his email in this thread).  I 
have created a (perhaps overly complicated) solution and posted it on 
GitHub at https://github.com/deeppunster/ShortLongURL.

If you have a solution you are willing to share, please post it here (or 
a link to it).

Travis

On 14 Mar 2019, at 15:22, Travis Risner wrote:

> Hi folks,
>
> Here is today’s problem for people who show up at the DoJo tonight.
>
> 	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?
>
> See you at the DoJo:
>
> 	Smokehouse Brewing
> 	1130 Dublin Road
> 	Columbus, OH  43215
> 	(614) 485-0227
>
> Travis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20190315/767dc742/attachment.html>


More information about the CentralOH mailing list