题目:
Amessage containing letters from A-Z is being encoded to numbers usingthe following mapping:
一条信息包含从A-Z的字母,但是这些字母使用下面的映射编码成了一串数字。
'A' -> 1
'B' -> 2
...
'Z' -> 26
Givenan encoded message containing digits, determine the total number of ways todecode it.
给定由数字组成的一串编码过的信息,确定这串数字可以有多少种解码方法。
Forexample,
Given encoded message "12", it could be decode