Decrypt String from Alphabet to Integer Mapping
Letters a to i are written as the digits 1 to 9. Letters j to z are written as 10# to 26#. Decode s and return the original lowercase letters. A # always marks the two digits right before it as one letter.
Example 1
s "10#11#12"
returns "jkab"
j, k, then 1 is a and 2 is b: jkab.
Example 2
s "1326#"
returns "acz"
1 is a, 3 is c, 26# is z: acz.
Constraints
1 <= len(s) <= 50- Digits
1-9and#only;sis a valid encoding
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.