@@ -0,0 +1,507 @@
+public class NumArray %7B%0A%0A    private int%5B%5D sums;%0A%0A    public NumArray(int%5B%5D nums) %7B%0A%0A        for (int i = 1; i %3C nums.length; i++) %7B%0A            nums%5Bi%5D += nums%5Bi - 1%5D;%0A        %7D%0A%0A        sums = nums;%0A%0A    %7D%0A%0A    public int sumRange(int i, int j) %7B%0A%0A        if (i == 0) %7B%0A            return sums%5Bj%5D;%0A        %7D%0A%0A        return sums%5Bj%5D - sums%5Bi - 1%5D;%0A%0A    %7D%0A%0A%7D%0A%0A/**%0A * Your NumArray object will be instantiated and called as such:%0A * NumArray obj = new NumArray(nums);%0A * int param_1 = obj.sumRange(i,j);%0A */%0A

Create : 303 Range Sum Query - Immutable