Count the number of ways to decode a numeric string into letters using the mapping A=1 to Z=26.
Constraints
Example
>>> num_decodings("12")
2
>>> num_decodings("226")
3
>>> num_decodings("06")
0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints