mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-22 00:07:13 +00:00
fix several bugs
This commit is contained in:
@@ -15,7 +15,7 @@ void printFunc(vector *v, void *p) {
|
||||
}
|
||||
|
||||
/* 前序遍历:例题一 */
|
||||
static void preOrder(TreeNode *root) {
|
||||
void preOrder(TreeNode *root) {
|
||||
if (root == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
add_executable(binary_search_recur binary_search_recur.c)
|
||||
add_executable(hanota hanota.c)
|
||||
add_executable(build_tree build_tree.c)
|
||||
add_executable(hanota hanota.c)
|
||||
|
||||
@@ -19,7 +19,7 @@ typedef struct pair Pair;
|
||||
/* 链表节点 */
|
||||
struct node {
|
||||
Pair *pair;
|
||||
struct Node *next;
|
||||
struct node *next;
|
||||
};
|
||||
|
||||
typedef struct node Node;
|
||||
|
||||
Reference in New Issue
Block a user