899c844c78
- Replaced std::set with std::vector for sequence handling. - Added randomization of sequences to avoid ordered input bias. - Removed unused balance function and related code in bst.cpp and bst.h. - Fixed bugs in list insertion and search logic. - Updated plot.py to allow custom y-axis labels and enable log scale for build plots.
13 lines
220 B
C++
13 lines
220 B
C++
#include <vector>
|
|
|
|
struct Tree {
|
|
int info;
|
|
Tree *left;
|
|
Tree *right;
|
|
};
|
|
|
|
Tree *insert(Tree *root, int value);
|
|
Tree *search(Tree *root, int value);
|
|
void deleteTree(Tree *root);
|
|
int getHeight(Tree *root, int height);
|