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.
Javascript update to Node 18
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
Scala translation
In JavaScript, random tests generate arrays which contain only one repeated number.
Description should be language-agnostic (regarding examples
Hi, check kata
[Translation] [Dart] [0]
JavaScript should be updated to Node 18 and use chai.
Updated in this fork
Haskell reference solution is incorrect.
solve "" ""
should be1
, not0
.Lua translation!
Shouldn't it be stated clearly within the desc that input is guaranteed to not be empty? Having at least one time item as argument.
I'm saying that as I'm translating the kata and wanted to ensure test cases are written properly (i.e no need to handle such an edge case e.g)
Kindly LMK as I see the solution && test cases are based on that fact without clarifying it in the description.
I'd rather to always have I/O section provided for any kinda kata to standardize the process a bit.
Haskell translation
( Haskell )
Random tests are predictable: expected value is always the one where
abs(x) <= 14
.Lua translation!
In Lua,
expected
andactual
are swapped.assert.are.same(solution.count(a), k89(a))
should beassert.are.same(k89(a), solution.count(a))
.Loading more items...