正確的binary search tree -- 非遞歸插入

(1)定義一個鏈表式結構體,做爲bst的節點node,key值爲int(注意不要用string類做爲後續red-black tree的color,?爲何不清楚?)node typedef struct node{ int key; /*int color;*/ struct node *left; struct node *right; struct node *p; }
相關文章
相關標籤/搜索