MCPcopy Index your code
hub / github.com/loiane/javascript-datastructures-algorithms / insert

Method insert

src/10-tree/avl-tree.js:32–34  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

30 }
31
32 insert(data) {
33 this.#root = this.#insertNode(data, this.#root);
34 }
35
36 #insertNode(data, currentNode) {
37 if (!currentNode) {

Callers 13

01-bst.jsFile · 0.45
06-red-black.tsFile · 0.45
05-avl.tsFile · 0.45
06-red-black.jsFile · 0.45
05-avl.jsFile · 0.45
01-bst.tsFile · 0.45

Calls 1

#insertNodeMethod · 0.95

Tested by

no test coverage detected