DEV Community

I Want To Learn Programming
I Want To Learn Programming

Posted on

Code Challenge of the Day — Decode ways (hard)

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
Enter fullscreen mode Exit fullscreen mode

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)