Update dynamic_programming/partition_problem.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Lajat5
2021-11-10 16:49:57 +05:30
committed by GitHub
parent b33ecbdadc
commit d8c61b2d14

View File

@@ -92,11 +92,8 @@ static void test() {
bool expected_result = true;
bool derived_result = dp::partitionProblem::findPartiion(arr, n);
std::cout << "1st test: ";
if (expected_result == derived_result) {
std::cout << "Passed!" << std::endl;
} else {
std::cout << "Failed!" << std::endl;
}
assert(expected_result == derived_result);
std::cout << "Passed!" << std::endl;
}
/*******************************************************************************