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.
As mentioned by several commenters below, as of this message, the Java version of this Kata is broken. In order to pass the tests, if you compute any values that exceed the max value for an int, instead just put 2147483647 (the max value for an int) in the applicable index of the array.
i
(which is used in the loop to run 50 "random" tests), not theconst r
. so your random tests are basically only from 0 to 49The reference solution should be inside a
Describe
block in C++.The output type should be
long[]
in Java.what does it mean by shortest possible string?