Update dynamic_programming/house_robber.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
Swastika Gupta
2021-07-04 08:32:09 +05:30
committed by GitHub
parent 91464510aa
commit c00823e8db

View File

@@ -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
std::cout << "passed" << std::endl;
// Test 3
// [] return 0
std::vector<int> array3 = {};
std::cout << "Test 3... ";