diff --git a/d6/dcd/md__c_o_n_t_r_i_b_u_t_i_n_g.html b/d6/dcd/md__c_o_n_t_r_i_b_u_t_i_n_g.html index 4f7555633..3ff464e2e 100644 --- a/d6/dcd/md__c_o_n_t_r_i_b_u_t_i_n_g.html +++ b/d6/dcd/md__c_o_n_t_r_i_b_u_t_i_n_g.html @@ -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. } }