Question DSA-DP-0073
HardIn the 'house robber' problem on a circle of houses, how is the answer computed?
- A.
Take every other house
- B.
Solve the line problem twice, once without the first house and once without the last, and take the better
- C.
Sign up free to see the answer and a step-by-step explanation.