Medium
House Robber with houses arranged in a circle.
The first and last houses are adjacent because the houses form a circle. Return the maximum amount you can rob.
Examples
Input: nums = [2,3,2]
Output: 3
Constraints
- 1 <= nums.length
Coding Challenge
House Robber with houses arranged in a circle.
The first and last houses are adjacent because the houses form a circle. Return the maximum amount you can rob.
Input: nums = [2,3,2]
Output: 3
Preparing your coding workspace...