mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 02:25:57 +08:00
Update dynamic_programming/partition_problem.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user