This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
/** | |
* ShortURL: Bijective conversion between natural numbers (IDs) and short strings | |
* | |
* ShortURL.Encode() takes an ID and turns it into a short string | |
* ShortURL.Decode() takes a short string and turns it into an ID | |
* |