Decode Morse without white spaces to text
问题 Is there any possibility to decode Morse code to text if the code is in following format(without any white spaces): -.-..--.....-...--..----. Normally it looks like that, - .-. .- -. ... .-.. .- - .. --- -. t r a n s l a t i o n but is it possible, to get the same text from Morse code without white spaces? 回答1: This is possible to do, but it becomes problematic as you end up generating a large number of possible options. First start with a Morse mapping: private Dictionary<string, string> map