A digit string maps to letters (1-26). Return the number of ways to decode it.
Write decode_ways(s).
Starter:
def decode_ways(s):
# TODO
pass
Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge
Top comments (0)