This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import random, math | |
outputdebug = False | |
def debug(msg): | |
if outputdebug: | |
print msg | |
class Node(): | |
def __init__(self, key): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type avlNode struct { | |
Key int | |
Height int | |
Lchild, Rchild *avlNode |