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

    Yes, make sure to check the beginning and the end of the string for spaces.

  • 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.

  • Custom User Avatar

    I Passed: 9 Failed: 3 Exit Code: 1
    JavaScript
    Anyone getting the same error as me?!

    More complex tests
    Got 'undefinedEundefined', expected 'E'
    Got 'undefined E Eundefined', expected 'E E'
    Got 'undefined undefined SOS! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.undefinedundefined', expected 'SOS! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.'

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution