Skip to content

Instantly share code, notes, and snippets.

View kcmerrill's full-sized avatar

kc merrill kcmerrill

View GitHub Profile
@girish3
girish3 / avl_tree.py
Created February 15, 2016 18:33
AVL tree implementation in python
#import random, math
outputdebug = False
def debug(msg):
if outputdebug:
print msg
class Node():
def __init__(self, key):
@defp
defp / avl.go
Created March 3, 2014 15:41
simple avl tree with golang
package main
import (
"fmt"
)
type avlNode struct {
Key int
Height int
Lchild, Rchild *avlNode