<awangdev>Heaters_1.java
public int findRadius(int[] houses, int[] heaters) {
        int heaterIndex = 0;
        int radius = 0;
        int heatersLength = heaters.length;
        Arrays.sort(houses);
        Arrays.sort(heaters);
        for (int i = 0; i < houses.length; i++) {
            int housePos = houses[i];
            while (heaterIndex < heatersLength - 1 && Math.abs(heaters[heaterIndex + 1] - housePos) <= Math.abs(heaters[heaterIndex] - housePos)) {
                heaterIndex++;
            }
            radius = Math.max(radius, Math.abs(heaters[heaterIndex] - housePos));
        }
        return radius;
    }
public int sample_funcname ( int [ ] var_0 , int [ ] var_1 ) {
  int var_3 = 0 ;
  int var_4 = 0 ;
  int var_6 = var_1 . length ;
  Arrays . sort ( var_0 ) ;
  Arrays . sort ( var_1 ) ;
  for ( int var_9 = 0 ;
  var_9 < var_0 . length ;
  var_9 ++ ) {
    int var_10 = var_0 [ var_9 ] ;
    while ( var_3 < var_6 - 1 && Math . abs ( var_1 [ var_3 + 1 ] - var_10 ) <= Math . abs ( var_1 [ var_3 ] - var_10 ) ) {
      var_3 ++ ;
    }
    var_4 = Math . max ( var_4 , Math . abs ( var_1 [ var_3 ] - var_10 ) ) ;
  }
  return var_4 ;
}
