摘要: 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 阅读全文
posted @ 2024-09-02 10:18 朝阳1 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2024-09-02 10:17 朝阳1 阅读(2) 评论(0) 推荐(0) 编辑