Skip to content

Instantly share code, notes, and snippets.

View tokenbender's full-sized avatar

tokenbender tokenbender

View GitHub Profile
@tokenbender
tokenbender / btree.cpp
Created November 22, 2017 15:01 — forked from toboqus/btree.cpp
Binary tree implementation in c++
#include <iostream>
using namespace std;
struct node{
int value;
node *left;
node *right;
};
@tokenbender
tokenbender / disjoint_set_union.h
Created November 22, 2017 15:01 — forked from fyquah/disjoint_set_union.h
Disjoint Set Union Implementation in C++
#include <cstring>
class Disjoint_Union
{
public:
Disjoint_Union(const int & n);
int create();
void merge(int i , int j);
int find(const int & i);
int size(){