Skip to content

Instantly share code, notes, and snippets.

View olomix's full-sized avatar

Oleh Lomaka olomix

  • Prom.ua
  • Philadelphia, Pennsylvania
View GitHub Profile
@olomix
olomix / bbtree.py
Created July 24, 2012 08:16
Balanced binary tree in Python
#!/usr/bin/env python2.7
import random
import subprocess
class Node(object):
def __init__(self, key, value):
self.key = key
self.value = value