Morse Code Decoder

Asked at Amazon · Coding Questions · Difficulty: Medium · Last asked Apr 25, 2026

Build a decoder for telegraph-style Morse messages. A clean message separates letters with one space and words with `|`. Real transmissions lose separators, so the later parts ask for every reading of a message that is consistent with a known mapping and a word list.

Loading the problem…