关于PTA数据结构与算法题目集(中文)6-12 二叉搜索树的操作集,有些小疑惑
关于Delete函数的实现,有些小疑惑这是AC代码:BinTree Delete( BinTree BST, ElementType x ){ if(!BST){ printf("Not Found\n"); } else { if(x<BST->Data)BST->Left=Delete(BST->Left,x); else if(x>BST->Data)BST->Right=Delet
原创
2020-09-10 17:26:19 ·
154 阅读 ·
2 评论