Anyone know how to check morse code in a given string of dots and dashes?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anyone know how to check morse code in a given string of dots and dashes??

21st Nov 2016, 10:05 AM
Adithya
Adithya - avatar
4 Answers
+ 1
With spaces or without them?
21st Nov 2016, 11:10 AM
Lucas Heim
Lucas Heim - avatar
+ 1
Ok, you know that there are different translations to your example, right? Because .. is a letter and ... is another letter, for example, so you have two possibilities already in the beginning. You want a code that give you this possibilities?
21st Nov 2016, 2:52 PM
Lucas Heim
Lucas Heim - avatar
0
without spaces Eg : "....-..-...--"
21st Nov 2016, 2:04 PM
Adithya
Adithya - avatar
0
yes exactly... say a=.. b=..- c=-.. and other than this is X say
21st Nov 2016, 3:12 PM
Adithya
Adithya - avatar