From ffdd173f0df7e512f8ed09f91d7ef7321cc6417b Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Thu, 27 Apr 2023 01:14:20 +0000 Subject: [PATCH] Documentation for c0c27153cdd632dd824b4a698f28ae29233483c6 --- d6/dcd/md__c_o_n_t_r_i_b_u_t_i_n_g.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. } }