mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update dynamic_programming/house_robber.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
parent
fbec33e556
commit
a22039aefa
@ -69,6 +69,7 @@ std::uint64_t houseRobber(const std::vector<int> &money, int n) {
|
||||
* @returns void
|
||||
*/
|
||||
static void test() {
|
||||
//Test 1
|
||||
// [1, 2, 3, 1] return 4
|
||||
std::vector<int> array1 = {1, 2, 3, 1};
|
||||
std::cout << "Test 1... ";
|
||||
|
Loading…
Reference in New Issue
Block a user