MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / BST

Function BST

chapter04/util/BST.js:3–7  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1var Queue = require('./Queue');
2
3var BST = function(value) {
4 this.value = value;
5 this.left = null;
6 this.right = null;
7};
8
9BST.prototype.insert = function(value) {
10 if (value < this.value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected