摘要:
package main import "fmt" const RED = 0 const BLACK = 1 type Type int type RBNode struct { color uint8 key Type left, right, parent *RBNode } type RBR 阅读全文
摘要:
package main import ( "fmt" ) type AVLNode struct{ data int height int left, right *AVLNode } func max(a, b int) int { if a > b { return a } return b 阅读全文