mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-11 19:30:59 +00:00
feat(go/tree): support array binary tree (#655)
This commit is contained in:
@@ -45,7 +45,7 @@ func PrintHeap(h []any) {
|
||||
fmt.Printf("堆的数组表示:")
|
||||
fmt.Printf("%v", h)
|
||||
fmt.Printf("\n堆的树状表示:\n")
|
||||
root := ArrToTree(h)
|
||||
root := SliceToTree(h)
|
||||
PrintTree(root)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user