Update house_robber.cpp

This commit is contained in:
Swastika Gupta 2021-07-08 09:21:59 +05:30 committed by GitHub
parent 49a73d2c8d
commit d8db9a8d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,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<int> &money, const int &n) {
std::uint32_t houseRobber(const std::vector<int> &money, const int &n) {
if (n == 0) { // if there is no house
return 0;
}