mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 03:30:30 +08:00
Add implementation of array binary tree.
Rewrite the tree serialization and deserialization methods. Add applications of array and linked list.
This commit is contained in:
@@ -114,7 +114,7 @@ class MaxHeap {
|
||||
cout << "堆的数组表示:";
|
||||
printVector(maxHeap);
|
||||
cout << "堆的树状表示:" << endl;
|
||||
TreeNode *root = vecToTree(maxHeap);
|
||||
TreeNode *root = vectorToTree(maxHeap);
|
||||
printTree(root);
|
||||
freeMemoryTree(root);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user