Coding
Decode Ways
Determine the number of valid ways to decode a string of digits.
Input: s = "10"
Output: 1
Explanation: The string can only be decoded one single way, as the sequence '10' maps exclusively to the letter 'J'.
Was asked at
Determine the number of valid ways to decode a string of digits.
Input: s = "10"
Output: 1
Explanation: The string can only be decoded one single way, as the sequence '10' maps exclusively to the letter 'J'.
More interviews, more skills, more success.
Be the first to share your approach to this question