Let's say there is an encoding scheme where integer 1 encodes character 'A', integer 2 encodes character
Fantastic news! We've Found the answer you've been seeking!
Question:
Let's say there is an encoding scheme where integer 1 encodes character 'A', integer 2 encodes character 'B' and so on till integer 26 which encodes character 'Z'. With this encoding scheme, write a java function to count all possible decoding of a given digit sequence. There are several input-output examples provided below. Also look at the assumptions you can make at the end and keep it simple. Hint: Do it recursively! Example 1 Input = "12"Output = 2
Related Book For
Posted Date: