Solving Decode Ways in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

'A' -> 1
'B' -> 2
...
'Z' -> 26

Example 1:

Input: "12"
Output: 2
Explanation: It could be decoded as "AB" (1 2) or "L" (12).

Example 2:

Input: "226"
Output: 3
Explanation: It could be decoded as "BZ" (2 26), "VF" (22 6), or "BBF" (2 2 6).
'A' -> 1
'B' -> 2
...
'Z' -> 26

See the full details of the problem Decode Ways at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go