摘要: 本题要求给定二叉树的高度。 函数接口定义: int GetHeight( BinTree BT ); 其中BinTree结构定义如下: typedef struct TNode *Position; typedef Position BinTree; struct TNode{ ElementTyp 阅读全文
posted @ 2020-07-15 11:03 别团等shy哥发育 阅读(25) 评论(0) 推荐(0)
摘要: 本题要求在一个数组中实现两个堆栈。 函数接口定义: Stack CreateStack( int MaxSize ); bool Push( Stack S, ElementType X, int Tag ); ElementType Pop( Stack S, int Tag ); 其中Tag是堆 阅读全文
posted @ 2020-07-15 11:01 别团等shy哥发育 阅读(15) 评论(0) 推荐(0)