Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bolgovr on github.
  • I am bolgovr (https://keybase.io/bolgovr) on keybase.
  • I have a public key ASCLELE4tZD5B9d8DrJcpWjBEZm1G6ztfRtk72DLVwk5dgo

To claim this, I am signing this object:

var fs = require('fs');
fs.readFile('./source.txt', function (err, content) {
var array = content.toString().split('\n');
var container = {};
array.forEach(function (num) {
container[num] = 1;
});
var lookingFor = process.argv.pop();
console.log('looking for ' + lookingFor);
for (var i in container) {
var Leaf = function (value) {
this.right = null;
this.left = null;
this.value = value || null;
};
var Tree = function () {
this.root = null;
};
Tree.prototype.addLeaf = function (value) {
if (this.root === null) {