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.
This comment is hidden because it contains spoiler information about the solution
Here is a Java translation.
Nice kata!
Lua translation !
actual
andexpected
in the right order (resolving this issue)math.randomseed(os.time())
Lua translation !
Briefly: in the returned array every element should not have a bigger number after itself.
OCaml translation
actual
andexpected
are swapped in Lua.Ruby:
0
Java tests generate warnings:
this kata's tests are fully broken in lua
Lua fork
expected
andactual
in the right ordermath.randomseed
Lua fork
expected
andactual
in the right ordermath.randomseed
Lua fork
expected
andactual
in the right ordermath.randomseed
Lua translation
expected
andactual
in the right order resolving this issuemath.randomseed
Lua translation resolving this issue
tester
function providing input on failure and puttingexpected
andactual/Passed in
in the right order.toNumber
->tonumber
+ added syntax highlightingmath.randomseed
Loading more items...