InterviewSolution
Saved Bookmarks
| 1. |
In a village, people build houses in the same side of the road. A thief plans to loot the village. He wants maximum amount of money without having any risk of getting caught. By some means, the villagers know that their adjacent house is being looted or not and thus they become alert. So the thief cannot loot contiguous two houses. Given that the thief knows the amount of money stored in each house and the road is straight and there is no turning, which is the most efficient algorithmic strategy to solve this problem?(A) Brute-force(B) Dynamic Programming(C) Backtracking(D) Divide and Conquer |
| Answer» None | |