Decrypt String from Alphabet to Integer Mapping Problem
Decrypt String from Alphabet to Integer Mapping Problem — ExecCode Easy DSA Practice
Solve the Decrypt String from Alphabet to Integer Mapping problem on ExecCode. Free online easy DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Description You are given a string s formed by digits and '#'. Your task is to compute the required answer and return the string formed after mapping. We want to map s to English lowercase characters as follows: - Characters ('a' to 'i') are represented by ('1' to '9') respectively. - Characters ('j' to 'z') are represented by ('10#' to '26#') respectively. The test cases are generated so that a unique mapping will always exist.
Examples
Input {"s": "10#11#12"}; Output jkab. 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.
Practice Decrypt String from Alphabet to Integer Mapping free on ExecCode. Browse DSA problems, topic map, and placement guides.