From 91464510aa6ce8b569fc91f5f13ee4dfffdfb921 Mon Sep 17 00:00:00 2001 From: Swastika Gupta <64654203+Swastyy@users.noreply.github.com> Date: Sun, 4 Jul 2021 08:32:00 +0530 Subject: [PATCH] Update dynamic_programming/house_robber.cpp Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com> --- dynamic_programming/house_robber.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamic_programming/house_robber.cpp b/dynamic_programming/house_robber.cpp index 105926b22..a04ae164b 100644 --- a/dynamic_programming/house_robber.cpp +++ b/dynamic_programming/house_robber.cpp @@ -76,6 +76,7 @@ static void test() { 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 std::cout << "passed" << std::endl; + // Test 2 // [6, 7, 1, 3, 8, 2, 4] return 19 std::vector array2 = {6, 7, 1, 3, 8, 2, 4}; std::cout << "Test 2... ";