Skip to content

Instantly share code, notes, and snippets.

View adrianhumphrey111's full-sized avatar

Adrian Humphrey adrianhumphrey111

View GitHub Profile
@adrianhumphrey111
adrianhumphrey111 / treeGreatesLevel
Created September 14, 2017 17:56
Timed Problem for finding level with the largest sum of level.
var BinarySearchTree = function (value) {
var obj = Object.create(BinarySearchTree.prototype);
obj.value = value;
obj.left = null;
obj.right = null;
obj.parent = null;
return obj;
};
BinarySearchTree.prototype.insert = function (value) {
var BinarySearchTree = function (value) {
var obj = Object.create(BinarySearchTree.prototype);
obj.value = value;
obj.left = null;
obj.right = null;
return obj;
};
BinarySearchTree.prototype.insert = function (value) {
//if this is the first node, add it as root node
@adrianhumphrey111
adrianhumphrey111 / app.py
Last active July 12, 2021 07:45
Flask server to serve multiple agents
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import pickle
import uuid