Documentation for c0c27153cd

This commit is contained in:
github-actions
2023-04-27 01:14:20 +00:00
parent 4d46a85881
commit ffdd173f0d

View File

@@ -179,8 +179,9 @@ assert(backtracking::subset_sum::number_of_subsets(0, array1) ==
3. Small C++ program that showcases and explains the use of tests.
@icode{cpp}
#include <vector> /// for std::vector
#include <cassert> /// for assert
#include <iostream> /// for IO operations
#include <vector> /// for std::vector
#include <cassert> /// for assert
/**
* @brief Verifies if the given array
@@ -198,7 +199,7 @@ bool is_number_on_array(const std::vector<T> &arr, const int &numb
return true;
}
else {
return false;
// Number not in the current index, keep searching.
}
}