Remove treap insertion into treap

This commit is contained in:
Matúš Púll 2025-04-15 16:48:12 +02:00
parent 8dfbc802d2
commit ee2e61ad4d

View file

@ -111,12 +111,6 @@ public:
two.first = join(two.first, l);
root = join(two);
}
void insert(count_type k, treap t) {
// TODO test
auto two = split(root, k);
two.first = join(two.first, t.root);
root = join(two.first, two.second);
}
void append(string s) {
insert(size(), s);
}