2014-05-18 13:02:39 +08:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
二叉查找树变成双向链表
|
|
|
|
|
*/
|
|
|
|
|
|
2021-08-17 17:39:37 +08:00
|
|
|
typedef struct BSTreeNode{
|
2014-05-18 13:02:39 +08:00
|
|
|
int m_nValue;
|
2021-08-17 17:39:37 +08:00
|
|
|
struct BSTreeNode *m_pLeft, *m_pRight;
|
2014-05-18 13:02:39 +08:00
|
|
|
}BSTree;
|
|
|
|
|
|
|
|
|
|
void convertDoubleLinks(BSTree *root){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char const *argv[])
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|