Skip to content

Instantly share code, notes, and snippets.

@SubCoder1
SubCoder1 / RB-Tree.cpp
Created August 22, 2018 17:26
Red Black Tree implementation in C++
#include <bits/stdc++.h>
using namespace std;
struct node {
int data{};
node* left = nullptr;
node* right = nullptr;
node* parent = nullptr;
string color;
};