CodePudding user response:
Can be used in the sequence traversal thoughts, using a recursive implementation,CodePudding user response:
void InOrderTraverse (BiTree T)//in the output sequence traversal results
{if (T)
{InOrderTraverse (T - & gt; Lchild);
Printf (" % c ", T - & gt; The data);
InOrderTraverse (T - & gt; Rchild);
}
}
This is in the sequence traversal algorithm, one by one count/can