comefrom: <awangdev>315. Count of Smaller Numbers After Self_1.java
code: private int search(List<Integer> list, int target) {
  
          if (list.size() == 0) return 0;
          int start = 0, end = list.size() - 1;
          if (target <= list.get(start)) return start;
          if (target > list.get(end)) return end + 1;
          while (start + 1 < end) {
              int mid = start + (end - start) / 2;
              int num = list.get(mid);
              if (num < target) start = mid;
              else end = mid; 
          }
          if (target <= list.get(start)) return start;
          return end;
      }
masked: private int sample_funcname ( List < Integer > var_2 , int var_3 ) {
    if ( var_2 . size ( ) == 0 ) return 0 ;
    int var_6 = 0 , var_8 = var_2 . size ( ) - 1 ;
    if ( var_3 <= var_2 . get ( var_6 ) ) return var_6 ;
    if ( var_3 > var_2 . get ( var_8 ) ) return var_8 + 1 ;
    while ( var_6 + 1 < var_8 ) {
      int var_11 = var_6 + ( var_8 - var_6 ) / 2 ;
      int var_12 = var_2 . get ( var_11 ) ;
      if ( var_12 < var_3 ) var_6 = var_11 ;
      else var_8 = var_11 ;
    }
    if ( var_3 <= var_2 . get ( var_6 ) ) return var_6 ;
    return var_8 ;
  }
  