2022-06-08
213. House Robber II
Description
Input: nums = [2,3,2]
Output: 3
Explanation: You cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses.Input: nums = [1,2,3,1]
Output: 4
Explanation: Rob house 1 (money = 1) and then rob house 3 (money = 3).
Total amount you can rob = 1 + 3 = 4.Input: nums = [1,2,3]
Output: 3Solution
Approach #0
55. Jump Game
Description
Solution
Approach #0
1037. Valid Boomerang
Description
Solution
Approach #0
Last updated