Skip to content

laszer25/Numeric-Keypad-SMS-Decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Numeric-Keypad-SMS-Decoder

Numeric Keypad SMS Decoder

Assume that you’re on the T9 SMS mode [Manual Mode]. In this case: a would be 2 b would be 22 c would be 222 d would be 3 etc

IMPORTANT: To send 2 letters in sequence from the same cell phone button, the user must “pause” before pressing the same button a second time. Use a space character to indicate a pause.

For example: “ab” would be “2 22”

Example: “multunus” would be 6885558 8866887777

Finally, as you might expect, pressing zero will send a space.

Example: “ruby multunus” would be 777882299906885558 8866887777

The above describes how the encoder works. But your task is to write a decoder instead.

Example: Input: 2 2202223033 333 Output: ab cd ef

To keep things simple you do not need to consider Capitals and Numbers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages