Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
'Looks like you've solved it'
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.
Yes, make sure to check the beginning and the end of the string for spaces.
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.Experiencing the exact same problem.
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.'
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution