I have a list of digits number, say "123456", and I need to map it to a string, any string. The only constraint on the map functions are:
- each
list of digitsnumber must map to a unique character string (this means the string can be arbitrarily long) - character string can only contain 0-9, a-z, A-Z
What map function would produce the shortest strings?
Solutions in JavaScript are preferred.
note: Clearly the simplest solution is to use the original list of digits number, so make sure you solution does better than that.