<awangdev>327. Count of Range Sum_2.java
private long[] calcPreSum(int[] nums) {

        long[] preSum = new long[nums.length + 1];
        for (int i = 1; i < preSum.length; i++) {
            preSum[i] = preSum[i - 1] + nums[i - 1];
        }
        return preSum;
    }
private long [ ] sample_funcname ( int [ ] var_0 ) {
  long [ ] var_3 = new long [ var_0 . length + 1 ] ;
  for ( int var_4 = 1 ;
  var_4 < var_3 . length ;
  var_4 ++ ) {
    var_3 [ var_4 ] = var_3 [ var_4 - 1 ] + var_0 [ var_4 - 1 ] ;
  }
  return var_3 ;
}
