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.
No, the input is a list. AVL trees seem a little too complicated. The solution is simpler than that. You could build a tree from the list, but it is not necessarily needed.
The
Node
class is only available in the trainer, where it is preloaded. If you want to try it outside the trainer, either in the browser or in your code editor, here it is:Edit : JS version of the Node class, not the Python one.