Files
SnailMan 899c844c78 Refactor benchmark to use randomized vectors instead of sets
- 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.
2025-05-14 19:44:07 +02:00

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);