Skip to content

Instantly share code, notes, and snippets.

View vetom's full-sized avatar

Tomas Veras vetom

View GitHub Profile
@vetom
vetom / avl.cpp
Last active February 24, 2019 00:49
C++ AVL Tree
#include <iostream>
#include <algorithm> // swap, sort, min, find, max
using namespace std;
class Node
{
int data;
Node* left;
Node* right;
int height;