mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update house_robber.cpp
This commit is contained in:
parent
49a73d2c8d
commit
d8db9a8d05
@ -32,7 +32,7 @@ namespace house_robber {
|
|||||||
* @param n size of array
|
* @param n size of array
|
||||||
* @returns maximum amount of money that can be robbed
|
* @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
|
if (n == 0) { // if there is no house
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user