[leetcode]91. Decode Ways 解码方式
Posted 程序媛詹妮弗
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[leetcode]91. Decode Ways 解码方式相关的知识,希望对你有一定的参考价值。
A message containing letters from A-Z
is being encoded to numbers using the following mapping:
‘A‘ -> 1 ‘B‘ -> 2 ... ‘Z‘ -> 26
Given a non-empty string containing only digits, determine the total number of ways to decode it.
Example 1:
Input: "12" Output: 2 Explanation: It could be decoded as "AB" (1 2) or "L" (12).
以上是关于[leetcode]91. Decode Ways 解码方式的主要内容,如果未能解决你的问题,请参考以下文章