Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

"Data Structures: Add a New Element to a Binary Search Tree" challenge needs more tests #164

@HugoLiconV

Description

@HugoLiconV

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)
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions