討論串[理工] binary tree
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者chenshengyua (阿丸)時間11年前 (2013/01/16 17:35), 編輯資訊
1
0
0
內容預覽:
各位大大. 我想問一題頗重要的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個字)

推噓1(1推 0噓 4→)留言5則,0人參與, 最新作者s07021990 (humor)時間11年前 (2013/01/16 18:00), 編輯資訊
0
0
0
內容預覽:
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
下一頁
尾頁