House Robber

Dynamic Programming ยท medium

Implement `rob(nums)` returning the maximum sum you can take without picking two adjacent elements.

Loading...

Run your code to see results.