Problem 394. Convert String to Morse Code

Created by NeoGenesis in Community

Convert a given string to international Morse Code

  • Strings will only have [A-z], [0-9] and space characters
  • A string must be returned with dots (.), dashes (-) and spaces between words

For example: given str = 'MATLAB is good' return ystr = '--.--.-...--... ..... --.-------..'

Solution Stats

49.39% Correct | 50.61% Incorrect
Last solution submitted on Jun 19, 2019

Problem Comments

Recent Solvers80

Suggested Problems