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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That was the first place I looked. It doesn't say one way or the other. And there's no way to comment.
This comment is hidden because it contains spoiler information about the solution
Crap I'm never going to get my mind around functional programming.
Nice. I knew the simpliest solution involved using "for" but I just couldn't figure out how.
Nice kata, but I agree with the earlier comments about truncation of the answer. It would be simpler to round to 6 decimal places rather than truncate.
Ugh I'm never going to get the hang of functional programming.
I eventually solved this, but would have appreciated seeing in the instructions that there is a 3-space separation between words but only a 2-space separation between numbers. It took me a long time to figure that out, I would have come to the solution much quicker if I'd known that when starting.
My Clojure solution works for all tests (as well as my own tests) except for the "sort-odd-random-test", which returns this error:
"java.lang.ClassCastException: clojure.lang.LazySeq cannot be cast to clojure.lang.Associative"
I've tried to figure out a work-around but to no avail.
Sure wish I'd stumbled on the frequencies function, man I really did this the hard way! Oh well, it's all learning.
Clojure tests throw errors even though code passes tests when applied locally