House Robber
198 House Robber
Given a list of non-negative integers represent the money in house, determine the maximum amount of money you can rob but not rob 2 continuous house
Space O(n)
Space O(1)
213. House Robber II
Same as house robber, but the first and the last house are connected
Break the circle, find the max of dp[n-1], dp[n]
Last updated
Was this helpful?