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.
lovely and neat!
clever but looks like compiled code
compact but a bit hard to read
those three method adds unnecessary operations because you can directly generate the result using old schoold for loop
reference solution added to tests in order to obtain an expected value to compare against.
This part (
assert.isString(output) assert.match(output, /^(?:10)*1?$/, 'Not an alternating sequence of 1 and 0 starting with 1') assert.lengthOf(output, input)
) should be replaced withassert.strictEqual(stringy(input), expected)
added random tests
BIG nice !
This comment is hidden because it contains spoiler information about the solution
No random tests.
This comment is hidden because it contains spoiler information about the solution
NO random tests
NO random tests
NO random tests
No random tests
assert.strictEqual
should be usedLoading more items...