There's no validation of the input to decode. Also, I'm not sure if the second test provided for decode is correct. I'm not getting any English words out of it, but my decode function hasn't failed besides that test.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here's my solution in Haskell:
There's no validation of the input to
decode
. Also, I'm not sure if the second test provided fordecode
is correct. I'm not getting any English words out of it, but my decode function hasn't failed besides that test.