A encoding system for encoding multiple digits into a string.

Algorithm

Every digit of a number must be greater or equal to the threshold at a the given string position , except for the last digit which must always be smaller

Threshold Function

A function that returns the threshold for a given index of a string

Decoding Example