mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-09 15:43:48 +08:00
Update dynamic_programming/house_robber.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
@@ -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... ";
|
||||
|
||||
Reference in New Issue
Block a user