fix some bugs in c codes (#1089)

pull/1093/head
Arthur 9 months ago committed by GitHub
parent 799da32eb0
commit 962f8f91f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,7 +6,7 @@
#include "../utils/common.h"
/* 二叉搜索树结构体 */
/* 二叉搜索树结构体 */
typedef struct {
TreeNode *root;
} BinarySearchTree;

@ -25,7 +25,7 @@ void testTreeNode() {
printTree(root);
// tree to arr
int *arr = treeToArray(root, size);
int *arr = treeToArray(root, &size);
printArray(arr, size);
}

Loading…
Cancel
Save