Data structures and algorithms in C++
Each algorithm has associated unit tests. The recommended approach to understand each algorithm is to first review the unit tests. This approach will help you understand the algorithm from multiple angles. For example, the unit tests are designed to validate the common path, edge cases, and negative paths.
Unit tests are built using Google Test. More details can be found at: