Search
⌘K

Leetcode 1844. Replace All Digits with Characters

Given a string with lowercase letters at even indices and digits at odd indices, replace each digit by shifting the preceding letter forward by the digit's value (e.g., shift('a',1) = 'b') to produce the resulting string; do this in a single pass — length ≤100 and all shifts stay ≤ 'z'.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.