You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
Describe the bug
You can complete the challenge by just adding the new element to the root if it is null.
This is all the code that you need to complete the challlenge
this.add = function (element) {
if(!this.root){
this.root = new Node(element)
}
}