I haven't done that much of a test so do not hesitate to tell me if I'm wrong. I also have returned false whether when there was no missing letters. I guess my solution will fail when the first letter is at the beginning or at the end of the array. The source-code with the playground is available here!
My take at the challenge written in TypeScript this time and using a recursive solution!
I haven't done that much of a test so do not hesitate to tell me if I'm wrong. I also have returned false whether when there was no missing letters. I guess my solution will fail when the first letter is at the beginning or at the end of the array. The source-code with the playground is available here!
I also did use my algorithm in Elm. Here is the source-code for the inner logic function.
I bet there could be a way to use it in Haskell or PureScript as well, but I'm more confortable using Elm for now.
And the testing is of course available here on Ellie App.