You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are given an array arr[] which represents houses arranged in a circle, where each house has a certain value. A thief aims to maximize the total stolen value without robbing two adjacent houses.
11
+
Determine the maximum amount the thief can steal.
12
+
13
+
Note: Since the houses are in a circle, the first and last houses are also considered adjacent.
0 commit comments