<gouthampradhan>array_TwoSumII_1.java
public int[] twoSum(int[] numbers, int target) {
    int i = 0, j = numbers.length - 1;
    while (i < j) {
      int x = (numbers[i] + numbers[j]);
      if (x == target) {
        int[] result = new int[2];
        result[0] = i + 1;
        result[1] = j + 1;
        return result;
      } else if (x < target) i++;
      else j--;
    }
    return new int[2];
  }
public int [ ] sample_funcname ( int [ ] var_0 , int var_1 ) {
  int var_3 = 0 , var_6 = var_0 . length - 1 ;
  while ( var_3 < var_6 ) {
    int var_7 = ( var_0 [ var_3 ] + var_0 [ var_6 ] ) ;
    if ( var_7 == var_1 ) {
      int [ ] var_9 = new int [ 2 ] ;
      var_9 [ 0 ] = var_3 + 1 ;
      var_9 [ 1 ] = var_6 + 1 ;
      return var_9 ;
    }
    else if ( var_7 < var_1 ) var_3 ++ ;
    else var_6 -- ;
  }
  return new int [ 2 ] ;
}
