Decode Morse Code to All Possible Original Strings

Given a mapping from lowercase letters a-z to Morse code and a Morse string code consisting only of . and -, return all possible original strings (over a-z) whose Morse-encoding equals `code...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: