This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SIZE_BALANCED_TREE | |
#define SIZE_BALANCED_TREE | |
template<typename T> | |
class sb_tree{ | |
private: | |
struct node{ | |
node *ch[2]; | |
int s; | |
T data; | |
node(const T&d):s(1),data(d){} |