Lab 4
Warning
To compile you should use a CMakeLists.txt. It takes sometimes to get use to it, but it makes the compilation much easier.
Splay Tree
Download the header file of the class on Moodle.
Implement each method of the class in a file SplayTree.cpp.
Download the test file of the class
main
.Test your class. Make sure everything works.
Red-Black Tree
LeetCode
If you are done, you can start doing the following problems on LeetCode:
Finish the previous problem, if you’re done.