From c76ef7cfef57472f50aff085a5b9d5681e29965b Mon Sep 17 00:00:00 2001 From: Swastika Gupta <64654203+Swastyy@users.noreply.github.com> Date: Thu, 8 Jul 2021 09:19:42 +0530 Subject: [PATCH] Update dynamic_programming/house_robber.cpp Co-authored-by: David Leal --- dynamic_programming/house_robber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic_programming/house_robber.cpp b/dynamic_programming/house_robber.cpp index 4e6dc90fc..b718cfa85 100644 --- a/dynamic_programming/house_robber.cpp +++ b/dynamic_programming/house_robber.cpp @@ -30,7 +30,7 @@ namespace house_robber { * @param n size of array * @returns maximum amount of money that can be robbed */ -std::uint64_t houseRobber(const std::vector &money, int n) { +std::uint64_t houseRobber(const std::vector &money, const int &n) { if (n == 0) { // if there is no house return 0; }