The houses now stand in a circle: the last house is a neighbour of the first. You still cannot rob two neighbouring houses. Return the largest total you can take.
For [2, 3, 2] the answer is 3 (houses 0 and 2 are neighbours).
Example 1
Input:
rob_circle([2, 3, 2])
Output:
3
Example 2
Input:
rob_circle([1, 2, 3, 1])
Output:
4
0 <= len(nums) <= 3000000 <= nums[i] <= 10000No results yet
Run your code to check it against the examples, or submit to run every test.