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>>.Pairis from Apache Commons Lang.Sorry for late response and those mistakes. I fixed the fixed tests and
shufflemethod.Changed
getRandomDouble()to generate lessNORMALIZEDand more other types.I did use
enumat first but it kept failing to detect class name so I usedclassinstead.While keep trying to use
enuminPreloaded, I noticed that the file name ofPreloadedis determined byclasskeyword so I found a workaround by puttingclass FloatTypeEnumin a comment and declaringFloatTypeEnumasenum.It is my bad. When I tried
-Double.NaNlikeJavaScript, the sign remained unchanged so I thought it was unobtainable and provided an extra method to produce it. I assumed the same forPOSITIVE_SIGNALING_NANandNEGATIVE_SIGNALING_NANas I could not find those inJavaScriptand 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.