Decode Ways

Medium

📝 Description

Count ways to decode numeric string to letters (A=1, B=2,...Z=26)

Input Format

String of digits

Output Format

Number of ways

Constraints

1 ≤ s.length ≤ 100

🔍 Sample Input

"226"
            

✅ Sample Output

3
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run