Decode Ways
A message containing letters fromA-Z
is being encoded to numbers using the following mapping:
Given a non-empty string containing only digits, determine the total number of ways to decode it.
Example 1:
Example 2:
Solution
Last updated