Skip to content

Commit 9146451

Browse files
Update dynamic_programming/house_robber.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
1 parent a22039a commit 9146451

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dynamic_programming/house_robber.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ static void test() {
7676
assert(dynamic_programming::house_robber::houseRobber(array1,array1.size())==4); // here the two non-adjacent houses that are robbed are first and third with total sum money as 4
7777
std::cout << "passed" << std::endl;
7878

79+
// Test 2
7980
// [6, 7, 1, 3, 8, 2, 4] return 19
8081
std::vector<int> array2 = {6, 7, 1, 3, 8, 2, 4};
8182
std::cout << "Test 2... ";

0 commit comments

Comments
 (0)