@@ -0,0 +1,314 @@
+public class Solution %7B%0A%0A    public int rob(int%5B%5D nums) %7B%0A%0A        int current = 0;%0A        int last = 0;%0A%0A        for (int i = 0; i %3C nums.length; i++) %7B%0A%0A            int tmp = current;%0A            current = Math.max(last + nums%5Bi%5D, current);%0A            last = tmp;%0A%0A        %7D%0A%0A        return current;%0A%0A    %7D%0A%0A%7D%0A

Create : 198 House Robber