#3840
House Robber V
specialist · 820 · lc medium +31 · 54% accepted · 71 likes · top 46%
Description
You are planning to rob houses along a street. Each house i holds nums[i] dollars and is tagged with color code colors[i]. You may not rob two adjacent houses that share the same color code. Return the maximum total amount you can steal.
Code
1
2
3