You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct node {
int value;
int color;//red 0 , black 1
node * left;
node * right;
node* parent;
node(int val) {
value = val;
left = right = parent = NULL;
}
};
const int red = 0;
const int black = 1;
首先是node:
类声明:
方法实现:
1.左右旋转
2.查找后继节点:
3.插入与插入调整
4.删除与删除调整
5.查找:
The text was updated successfully, but these errors were encountered: