comefrom: <awangdev>69. Sqrt(x)_2.java
code: public int mySqrt(int x) {
          long start = 0;
          long end = x;
          while(start <= end) {
              long mid = (start + end) / 2; 
              
              if (mid * mid < x) {
                  start = mid + 1;
              } else if (mid * mid > x){
                  end = mid - 1;
              } else {
                  return (int)mid;
              }
          }
          return (int)end;
      }
masked: public int sample_funcname ( int var_0 ) {
    long var_2 = 0 ;
    long var_3 = var_0 ;
    while ( var_2 <= var_3 ) {
      long var_5 = ( var_2 + var_3 ) / 2 ;
      if ( var_5 * var_5 < var_0 ) {
        var_2 = var_5 + 1 ;
      }
      else if ( var_5 * var_5 > var_0 ) {
        var_3 = var_5 - 1 ;
      }
      else {
        return ( int ) var_5 ;
      }
    }
    return ( int ) var_3 ;
  }
  