Skip to content

Practice Decrypt String from Alphabet to Integer Mapping

Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.

Easy#1309
LeetCode Problem

Decrypt String from Alphabet to Integer Mapping

Problem Statement

Decode s into lowercase English letters. The codes 1 through 9 represent a through i, and the codes 10# through 26# represent j through z. Return the decoded string. The input is guaranteed to have a unique valid decoding.

Source: Decrypt String from Alphabet to Integer Mapping on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
s = "10#11#12"
Output
"jkab"

# Example 2

Input
s = "1326#"
Output
"acz"

Constraints

1 <= s.length <= 1000
s consists of digits and the '#' letter.
s will be a valid string such that mapping is always possible.

Related LeetCode Problems

Practice more problems similar to Decrypt String from Alphabet to Integer Mapping.

Review your practice with PhantomCodeAI

After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.