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