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_0 , int var_1 ) {
    if ( var_0 . size ( ) == 0 ) return 0 ;
    int var_2 = 0 , var_3 = var_0 . size ( ) - 1 ;
    if ( var_1 <= var_0 . get ( var_2 ) ) return var_2 ;
    if ( var_1 > var_0 . get ( var_3 ) ) return var_3 + 1 ;
    while ( var_2 + 1 < var_3 ) {
      int var_4 = var_2 + ( var_3 - var_2 ) / 2 ;
      int var_5 = var_0 . get ( var_4 ) ;
      if ( var_5 < var_1 ) var_2 = var_4 ;
      else var_3 = var_4 ;
    }
    if ( var_1 <= var_0 . get ( var_2 ) ) return var_2 ;
    return var_3 ;
  }
  