mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 14:36:25 +08:00
Update dynamic_programming/house_robber.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,7 @@ static void test() {
|
|||||||
assert(dynamic_programming::house_robber::houseRobber(array2,array2.size())==19); // here the four non-adjacent houses that are robbed are first, third, fifth and seventh with total sum money as 19
|
assert(dynamic_programming::house_robber::houseRobber(array2,array2.size())==19); // here the four non-adjacent houses that are robbed are first, third, fifth and seventh with total sum money as 19
|
||||||
std::cout << "passed" << std::endl;
|
std::cout << "passed" << std::endl;
|
||||||
|
|
||||||
|
// Test 3
|
||||||
// [] return 0
|
// [] return 0
|
||||||
std::vector<int> array3 = {};
|
std::vector<int> array3 = {};
|
||||||
std::cout << "Test 3... ";
|
std::cout << "Test 3... ";
|
||||||
|
|||||||
Reference in New Issue
Block a user