Skip to content

Commit c76ef7c

Browse files
SwastyyPanquesito7
andauthored
Update dynamic_programming/house_robber.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
1 parent 14dd84e commit c76ef7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_programming/house_robber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace house_robber {
3030
* @param n size of array
3131
* @returns maximum amount of money that can be robbed
3232
*/
33-
std::uint64_t houseRobber(const std::vector<int> &money, int n) {
33+
std::uint64_t houseRobber(const std::vector<int> &money, const int &n) {
3434
if (n == 0) { // if there is no house
3535
return 0;
3636
}

0 commit comments

Comments
 (0)