mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-10 06:05:35 +08:00
Finetune
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
|
||||
#include "../utils/common.h"
|
||||
|
||||
/* 数组表示下的二叉树类 */
|
||||
struct arrayBinaryTree {
|
||||
vector *tree;
|
||||
};
|
||||
|
||||
typedef struct arrayBinaryTree arrayBinaryTree;
|
||||
|
||||
/* 构造函数 */
|
||||
arrayBinaryTree *newArrayBinaryTree(vector *arr) {
|
||||
arrayBinaryTree *newABT = malloc(sizeof(arrayBinaryTree));
|
||||
newABT->tree = arr;
|
||||
|
||||
Reference in New Issue
Block a user