Practice Problem

Decode Ways

Difficulty: Medium

Given a string of digits, determine the total number of ways to decode it, where 'A' = 1, 'B' = 2, ..., 'Z' = 26.