Skip to content

Instantly share code, notes, and snippets.

View yawboakye's full-sized avatar
🛡️
mī videtur

yaw yawboakye

🛡️
mī videtur
View GitHub Profile
@yawboakye
yawboakye / bst.js
Last active December 17, 2015 23:59
Tiny binary search tree implementation in JavaScript (does not balance automatically)
// javascript implementation of a binary search tree
var BST = function ( val ) {
this.val = val;
this.lc = this.rc = null;
}
BST.prototype = {
constructor: BST,