/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param numsLen int nums数组长度 * @return int整型 */ int max(int a, int b){ if(a>b) return a; else return b; } int rob(int* nums, int numsLen ) { // write code here int dp[numsLen][2]; memset(dp,0,sizeof(dp)); dp[0][0] = 0; dp[0][...