Problem
Given an array of non-negative integers where each element is the money in a house arranged in a line, find the maximum total you can rob without robbing two adjacent houses (adjacent robberies trigger the alarm).
Input / Output
nums, a non-negative integer array.Constraints
Example