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.
Not efficient at all, this is a O(N^2) solution.
The description says that only alphabetical characters will be used but the random tests in the Haskell version uses special characters.
I'm having this problem as well.
I really like this solution, but I wonder how efficient it is compared to the solutions using Data.Map
Definitely 7 kyu in my book. But I'm far from being an expert in rating katas.
BTW, IMO basic threads and synchronization primitives should be a part of basic knowledge for all developers anyways. Somewhere next to using iterators and handling exceptions.
This comment is hidden because it contains spoiler information about the solution
This one is difficult to judge. On the one hand the solution is quite simple and takes little work. On the other hand a novice is not likely to have encountered threads before, much less the concept of "waiting" on their completion. I think a 6-Kyu would be appropriate, to quote the kata "At this level the kata will start to include simple algorithmic challenges and more complex language features." - I believe joining on threads qualifies as a complex language feature.
Agreed. Definitely clever. Probably not a best practice.