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.
Strings of lengths
0
and100
should be tested.This should be tested too.
Random tests should be added.
The function name should be
valid-parentheses
or maybe evenvalid-parentheses?
.I just wanted to add a simple fork that shows off what the Project Euler question was hinting towards. The iterative solution becomes slow beyond a million or so.
Thanks :).
I like the zipWith tail trick, I'll have to remember that for code golf.
Good catch, fixed.
Needs clojure examples added to description.
head a :: Int
. Nota :: Int
.Cool, thanks. Works for me now!
Added.
Fixed again, made a slight typo.
Still seems to be doing it in Ruby:
So the test expects
init([33]) == [33]
. Is that correct?Yeah, I just noticed that my changes weren't saved, and I've updated them again.
No, the issue still occurs for JS:
Rectified.
No, I do specify differently; the test cases were wrong, as indicated by the issues below.
Loading more items...