Skip to content

Instantly share code, notes, and snippets.

View Nordalf's full-sized avatar

Alexander Falk Nordalf

View GitHub Profile
@nandor
nandor / redblack.cc
Created February 27, 2014 12:50
C++ Red-Black Trees (Based on CLR: Introduction to Algorithms)
#include <cstdlib>
#include <stdexcept>
#include <iostream>
using namespace std;
template<typename Key, typename Value>
class RedBlack
{
public:
RedBlack()