Coding

Decode Ways

Determine the number of valid ways to decode a string of digits.

Input: s = "10"

Output: 1

Explanation: The string can only be decoded one single way, as the sequence '10' maps exclusively to the letter 'J'.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions

3 answers published. Last candidate submission on Jul 17 2026, 6:47am PDT. Interview question asked to Software Engineers interviewing at Hitachi, Canon, Housing.com and other companies. Original question asked: Decode Ways. Question last reported by a candidate interviewing at Citrix for a Software Engineer interview on Nov 17 2026, 7:28am PDT.