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.
Definitely more in the spirit of the question
I'm having the same issue. I don't know what the value of
n
is for the test which times out, but on my machine I can go up to ~3500:I believe the code is right, as it solves a case which the author has provided an answer in a comment here:
Probably a typo, but your fixed test should be:
(is (= (head [5 1]) 5))