add my unfinished cbase

This commit is contained in:
joachimschmidt557 2020-06-09 17:51:23 +02:00
parent 501065651d
commit bb63a9dd3c
16 changed files with 277 additions and 0 deletions

16
cbase/data/trees/rbtree.h Normal file
View 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