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.
If you do not want cheaters, you have to make it more challenging. ;)
assert.deepEqual
, which is necessary for comparing arrays, is sufficient for comparing primitive values.I was too lazy to tailor tests to expected values to the extent of having
assert.equal
for primitives and.deepEqual
for lists. Writing them was enough$EXPLETIVE
work already. ( The tests are bigger than most, probably even any, solutions. )Sorry for the confusion.
It means you returned
4
while instead the correct answer was3
.