Skip to content

Latest commit

 

History

History
 
 

116-morse-code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Morse Code

Challenge Description:

You have received a text encoded with Morse code and want to decode it.

Input sample:

Your program should accept as its first argument a path to a filename. Input example is the following:

.- ...- ..--- .-- .... .. . -.-. -..-  ....- .....
-... .... ...--

Each letter is separated by space char, each word is separated by 2 space chars.

Output sample:

Print out decoded words. E.g.

AV2WHIECX 45
BH3

You program has to support letters and digits only.