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.
One random test is insufficient
mocha + chai
should be enabledEverything's working correctly now.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The description needs to include that the number of movies is limited, as with a large number of movies this is NP complete and a good solution would be much outside the bounds of a kata :)
I think that random test cases is not the best idea. It seems that some of the solutions willl be invalid. Because they will pass first test case.
The
Node
class is not defined in the tests. To use the run tests button, one has to define their ownNode
.Remark: JavaScript preloads currently only work on submit.
The Node class is already defined and preloaded for you. You shouldn't need to define it yourself. Just use it as explained in the last part of the description.
Fixed it. Thanks!
I'm also getting this error. What's up with writting your own node class? This doesn't make any sense. You're supposed to get your node object as a parameter.
Last test expects
false
but if fails returns wrong message :'Should return
true
for a big tree with leaves at different levels'I was getting that error as well, but then it went away. Not sure what happened.
yeah, I had that error too. You should your own Node Class, it should take three parameters Node(value, left, right)
Loading more items...