Create house_robber.cpp #1247
Create house_robber.cpp #1247
Conversation
It does not follow the repo standards. All the details are provided in the links in the checklist. Please review and update the code accordingly. No reviews will be provided until the code is updated to the repo standards. |
added test cases and solution description
Please review now, i have added test cases and solution as well. |
Refactored code
Refactored code
@kvedala please review it now. I have done all the required changes. |
Refactored code
|
@@ -0,0 +1,95 @@ | |||
/*House Robber - Dynamic Programming |
kvedala
on Oct 16, 2020
Collaborator
/*House Robber - Dynamic Programming | |
/** | |
* @file | |
* @brief House Robber - Dynamic Programming |
Update the documetnation block per the guidelines. A sample code is provided for your convenience. In the above comment, an example existing code was also provided as a reference.
|
||
/** | ||
* @brief This function implements the above algorithm | ||
* @money array of numbers containing the money in the ith house |
kvedala
on Oct 16, 2020
Collaborator
the doc blocks are not per the requested, suggested and described in the guidelines. refer to the comment above.
The "This" does not reflect in the documentation. You can review the documentation site: http://thealgorithms.github.io/C-Plus-Plus
You can split the file and function documentations. See this file for example. Also note the use of namespaces.
Added House Robber problem, solved using dynamic programming
Checklist
Notes: