d at position i stands for the letter that comes d places after code[i - 1] in the alphabet. For example, c followed by 4 means g, and the digit 0 repeats the previous letter.
Given the compact string code, replace every digit with the letter it stands for and return the resulting word. The shift is guaranteed never to go past z.code='m2p0' → 'mopp'
The 2 after "m" becomes "o" (two letters further), and the 0 after "p" becomes "p" itself.
code='a3t5w' → 'adtyw'
"a" + 3 = "d", "t" + 5 = "y", and the final "w" sits at an even position and stays as is.
code.length ≤ 100code hold lowercase English letters, odd positions hold digitsi, the letter code[i - 1] shifted by code[i] is not past zcode='m2p0'
'mopp'
Run checks the first 3 tests in your browser. Submit checks all 40 tests on the server, hidden ones included.