← OYO questions

Print all possible decodings of a digit string

Filed under OYO

Given a string of digits representing old mobile keypad inputs (e.g., '2' maps to 'a', '22' to 'b', '222' to 'c'), find all possible character combinations that could form the string. A sequence like…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.