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.
I have the same "No instance for (Applicative NIM)" issue.
It would be helpful if you could at least have the test suit available for trial runs.
Then people could help you debug.
Doing Ocaml, I get an
error when running the actual attempt that I don't get in the examples.
Where do the list handling functions come from?
Are they included in the
criterion.h
header in the test code?After some experimentation, I've found the test code can't handle answers without a terminating newline.
echo -n
andprintf
don't have one by default.Thanks, continuous composite numbers.
Go test case expects
Gap(6, 100, 110)
to benil
, but the correct answer should be[101, 107]
.Using C, I question why the return type is
Pair**
. I would expect it to bePair*
so I can allocate the array withPair *dio = malloc(10 * sizeof(Pair))
,resize as needed, and
return dio
.That is easier than needing a new malloc call for every pair.
The Ocaml starting code is wrong and misleading.
First is that
int
in Ocaml is not automatically promoted to a bignum. Bignums are in theNum
module.Second is that the user written function is required to output a string. Why is this conversion not done in the testing code?