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 strictly true though. that'll hold if you're invoking a function that accepts parameters. if it doesn't and you don't type
()
, that statement will evaluate to the function, not the result of invoking it.This kata is very unclear.
This comment is hidden because it contains spoiler information about the solution
Getting "unknown error" with my Haskell solution. Tests pass.
The suggested type should be Integer -> Integer, not Int -> Int.
Thinking out of the box! thanks!
My Haskell solution is mathematically correct, but for the life of me I can't figure out a way to make it run under the 6s time limit (in my machine
fac 100000
takes close to 12 seconds). Has anyone experienced the same difficulty and able to surmount it?are you using the correct number type?
I just seem to be unable to convince my code to accept Ints at all. :(
calling the auxiliary function 'curry' is a nice touch :)