Ad
  • Default User Avatar

    'Looks like you've solved it'

  • Custom User Avatar

    I met with the same problem in Rust. I thought there would be only SPACES before and after the string so I used .trim() to remove them, which worked quite well in C#, but I still couldn't pass the tests. I saw the solution ranking No.1 used filter map to eliminate the invalid input, which I guess shouldn't be necessary, so I wonder what the test cases are.

  • Custom User Avatar

    It seems that you look up in the MorseCode dictionary a key which is not a valid code. I think I even know what, note that you get unexpected things in the beginning and end of the string. Read through description a couple of times more, it's exactly written there what you missed.

  • Custom User Avatar

    Experiencing the exact same problem.