Same as House Robber, but the houses form a circle — the first and last are adjacent. Return the maximum loot.
Input: one line of space-separated non-negative integers. Output: the maximum amount.
2 3 2
3
Houses 0 and 2 are adjacent — can't take both 2s.
1 2 3 1
4
Run your code against the sample tests, or Submit to run the full suite.