mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-21 12:23:13 +08:00
Documentation for c0c27153cd
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user