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.
Certain incorrect solutions can pass if you try the tests repeatedly (at least in Python - have not tested other languages).
The full definition of the
TreeNode
should be inpreloaded
, not in the user solution. This affects all languages except Python.C++: No random tests
TypeScript translation (literal translation of JavaScript; author inactive)
This comment is hidden because it contains spoiler information about the solution
Language: C++
Test suit missing the required header
std::vector
Add some almost sorted fixed tests like
[1, 3, 9, 4]
to invalidate wrong solutions currently passing tests by chance.Scala translation
Too few tests in javascript.
Tests seem to be broken.
I keep getting expected [ undefined ] to deeply equal [ 1, 2, 3, 7, 16, 17 ] even though I am returning the array in the correct order
This comment is hidden because it contains spoiler information about the solution
Go translation
D translation
This is hardly understandable, misleading and should be reworded. The predicate doesn't applicate to the elements of the list but to their respective
.data
field.This comment is hidden because it contains spoiler information about the solution
Loading more items...