Decode Ways
A message containing letters from A-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:
Last updated
A message containing letters from A-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:
Last updated