Skip to content

Instantly share code, notes, and snippets.

View Horki's full-sized avatar
💾
2>/dev/null

Ivan Zvonimir Horvat Horki

💾
2>/dev/null
View GitHub Profile
use std::cmp::Ordering;
#[derive(Debug)]
enum RedBlackTree {
Node {
k: i32,
v: i32,
color: bool,
size: usize,
left: Box<RedBlackTree>,