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.
Thanks! Approved.
approved
Fixed.
Thanks for reviewing this two years later! I copied
abab
andacac
to the sample tests for a little more information and fixed your other two suggestions.cr_expect_*
instead ofcr_assert_*
so that the tests keep going even if an assertion fails. This is a puzzle and people are going to hitSubmit
until they see the pattern.if (x) free(x);
is useless, sincefree(NULL)
is valid.very long lines disable syntax highlighting, so
primes[] =
should be formatted differently in the test casesC translation
This comment is hidden because it contains spoiler information about the solution
hello, how does it work?
what kind of wicthcraft is this?
This comment is hidden because it contains spoiler information about the solution
how it works?
This comment is hidden because it contains spoiler information about the solution
Assembly disguised as C. It is brilliant!
No, asking for a wrong result with a relative error up to 1e-3 when simple floating point calculations have realtive errors of 1e-15 – 1e-17 doesn't make sense and doesn't respect codewars guidelines.
Could I still ask for a 3 decimal places answer? Using approximate equality of course.
Loading more items...