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.
The C# reference solution returns different results compared to other languages.
Possible Java translation
Fixed description merge problems of Clojure Translation by a deleted user.
Python new test framework required.
Haskell translation
This comment is hidden because it contains spoiler information about the solution
Description should be language-agnostic
C, C++, Objective-C, possibly NASM: random tests generate 63-bit numbers which can be very unfavorable and result in unsolvable inputs, and, as a result, timeouts (they can't be handled even by reference solution). Upper bounds of inputs should be either unified between languages, or inputs sohuld be guaranteed to be solvable.
Objective-C: while generating random inputs, random tests call
srand
in a tight loop and as a result they generate 40 identical inputs.C++: due to incorrect use of random utilities, the RNG is reseeded in a tight loop, and random tests generate 40 identical inputs.
srand
/rand
combo shold be replaced with properly used<random>
utilities.C Translation (author inactive).
Pretty sure that the JS random tests are not correct..
In some cases it expects true for non-prime numbers (for example 992237) and the oposite as well (for example 373)
Lua translation!
This comment is hidden because it contains spoiler information about the solution
Java translation, please review.
Loading more items...