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.
Changed return type to
List<Pair<Character, Integer>>
.Pair
is from Apache Commons Lang.Sorry for late response and those mistakes. I fixed the fixed tests and
shuffle
method.Changed
getRandomDouble()
to generate lessNORMALIZED
and more other types.I did use
enum
at first but it kept failing to detect class name so I usedclass
instead.While keep trying to use
enum
inPreloaded
, I noticed that the file name ofPreloaded
is determined byclass
keyword so I found a workaround by puttingclass FloatTypeEnum
in a comment and declaringFloatTypeEnum
asenum
.It is my bad. When I tried
-Double.NaN
likeJavaScript
, the sign remained unchanged so I thought it was unobtainable and provided an extra method to produce it. I assumed the same forPOSITIVE_SIGNALING_NAN
andNEGATIVE_SIGNALING_NAN
as I could not find those inJavaScript
and I did not know how to obtain them instead of converting from binary string.I found that
Double.longBitsToDouble(long)
can be used to produce those values so I removed the said method.