?? balanced subtree.txt
字號:
void levelorder(TREE t)
{
TREE st[20];
int i=0,k;
st[i++]=t;
for(k=0;st[k]!=NULL;k++)
{
cout<<st[k]->i;
st[i++]=st[k]->lt;
st[i++]=st[k]->rt;
}
}
The for loop will stop when it encounters a first node NULL in level order traversal..
this will not actually detect complete.. but almost complete will be detected..
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -