MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / houseRobber

Function houseRobber

dynamic_programming/house_robber.cpp:36–58  ·  view source on GitHub ↗

* @brief The main function that implements the House Robber algorithm using * dynamic programming * @param money array containing money in the ith house * @param n size of array * @returns maximum amount of money that can be robbed */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected