add my unfinished cbase
This commit is contained in:
parent
501065651d
commit
bb63a9dd3c
16 changed files with 277 additions and 0 deletions
16
cbase/data/trees/rbtree.h
Normal file
16
cbase/data/trees/rbtree.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef RBTREE_H
|
||||
#define RBTREE_H
|
||||
|
||||
typedef enum {
|
||||
Red,
|
||||
Black,
|
||||
} RBColor;
|
||||
|
||||
typedef struct RBTreeNode {
|
||||
void* data;
|
||||
struct RBTreeNode* left;
|
||||
struct RBTreeNode* right;
|
||||
RBColor color;
|
||||
} RBTreeNode;
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue