Skip to content

Instantly share code, notes, and snippets.

View amosgwa's full-sized avatar

Amos amosgwa

View GitHub Profile
@amosgwa
amosgwa / BOGO.js
Created September 17, 2016 19:57 — forked from anonymous/BOGO.js
https://repl.it/DD97/41 created by amosgwa
function Node(data) {
this.data = data;
this.parent = null;
this._left = null;
this._right = null;
}
function biTree(data) {
var node = new Node(data);
this._root = node;
@amosgwa
amosgwa / BOGO.js
Created September 8, 2016 22:38 — forked from anonymous/BOGO.js
https://repl.it/DD97/19 created by amosgwa
//Create Nodes class
function node(data,child){
this.data = data;
//Array of nodes
this.child = child;
this.visited = false;
}
//print the child
node.prototype.print = function(){