討論串[理工] binary tree
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
各位大大. 我想問一題頗重要的BT. 題目是這樣. Write a recursive program to check whether a given binary tree is symmetric with its structure(you don't need to check the v
(還有101個字)
內容預覽:
Boolean symmetric(node*s,node*r). {. bool ans=false;. if(s==NULL&&r==NULL) ans=true;//如果s跟r都是null表示樹相同. else if(s!=NULL&&r!=NULL)//如果都不是NUll的話. {. if(
(還有62個字)
首頁
上一頁
1
下一頁
尾頁