<awangdev>Binary Gap_1.java
public int binaryGap(int N) {
        if (N <= 0) return 0;
        int max = 0, start = -1, end = 0;
        while (N > 0) {
            if ((N & 1) == 1) {
                if (start == -1) start = end;
                else {
                    max = Math.max(max, end - start);
                    start = end;
                }
            }
            end++;
            N = N >> 1;
        }
        return max;
    }
public int sample_funcname ( int var_0 ) {
  if ( var_0 <= 0 ) return 0 ;
  int max = 0 , var_4 = - 1 , var_5 = 0 ;
  while ( var_0 > 0 ) {
    if ( ( var_0 & 1 ) == 1 ) {
      if ( var_4 == - 1 ) var_4 = var_5 ;
      else {
        max = Math . max ( max , var_5 - var_4 ) ;
        var_4 = var_5 ;
      }
    }
    var_5 ++ ;
    var_0 = var_0 >> 1 ;
  }
  return max ;
}
