Interview Question for SDE-2s
- 1of 3 votes
A message containing letters from A-Z is being encoded to numbers using the following mapping:- MM September 26, 2017 in United States
'A' -> 1
'B' -> 2
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
Given encoded message "12", it could be decoded as "AB" (1 2) or "L" (12).
| Report Duplicate | Flag | PURGE
Open Chat in New Window