Skip to content

Instantly share code, notes, and snippets.

View olomix's full-sized avatar

Oleh Lomaka olomix

  • Philadelphia, PA
  • 05:16 (UTC -04:00)
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
;; Prime value
%%prime 21888242871839275222246405745257275088548364400416034343698204186575808495617
;; Memory of signals
%%signals 5
;; Heap of components
%%components_heap 3