The hints/ex2/ directory contains an implementation of a double-linked list class. The class stores a pointer to the head, and each node (except for the head and the tail, obviously) contains a pointer to the previous and to the next node.
The implementation contains a lot of errors, namely:
main.With the help of gdb and valgrind, solve all these issues and make the code working!
The hints/ex3/ contains a static function to compute the mean of a std::vector.
Following the given directory structure and using Google Test, fill in the missing parts in tests/mean.cpp to check that the function behaves as expected in all the listed cases.
To run the testsuite type
make test
or
ctest
from the CMake build folder.