Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 619 Bytes

File metadata and controls

32 lines (24 loc) · 619 Bytes

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.