Back to Questions

Decode Ways

97.6K viewsAsked at Stripe
Medium

Question Explain

A message containing letters A-Z is being encoded to numbers. Given a non-empty string `s` containing only digits, determine the total number of ways to decode it.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Decode Ways - Interview Question