Rename file representation to treap for better readability

This commit is contained in:
Matúš Púll 2025-03-30 17:05:01 +02:00
parent 1582e7e7cb
commit 17237e1cb3

View file

@ -16,7 +16,7 @@ struct line {
typedef std::pair<line*, line*> two_lines; typedef std::pair<line*, line*> two_lines;
// Treap representation of a file // Treap representation of a file
class file { class treap {
public: public:
line* root; line* root;
@ -79,7 +79,7 @@ public:
} }
public: public:
file() { treap() {
srand(120); srand(120);
root = nullptr; root = nullptr;
} }