Houses along a street each hold some money nums[i] . You cannot rob two adjacent houses (an alarm links neighbours). Return the maximum total you can rob. Input format Input is a single array, e.g. [[2,7,9,3,1]] .