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
why in last test (random test) i get the expected output plus 1 !!
it passes all tests but get plussed by 1 at random test
what should i handele ?
Fixed.
Merged.
js fork
mocha/chai
andlodash
Done in latest fork
Done in latest fork
Approved
Javascript update to Node 18
Please see this pending fork that resolves the issue
fork
expected
andactual
in the right order in fixed and sample testsmath.randomseed(os.time())
to have different inputs each run{ table.unpack(arr) }
OCaml translation
wow such a clever methode
it adds the value and negative together cummulating ZERO
it left only the value which not has its negative value
Scala translation
In JavaScript, random tests generate arrays which contain only one repeated number.
Loading more items...