comefrom: <awangdev>1094. Car Pooling_1.java
code: public boolean carPooling(int[][] trips, int capacity) {
          if (trips == null || trips.length == 0) return true;
          
          int[] bucket = new int[1000];
          for (int[] trip : trips) {
              bucket[trip[1]] += trip[0];
              bucket[trip[2]] += -trip[0];
          }
          int cap = 0;
          for (int num : bucket) {
              cap += num;
              if (cap > capacity) return false;
          }
          return true;
      }
masked: public boolean var_0 ( int [ ] [ ] var_1 , int var_2 ) {
    if ( var_1 == null || var_1 . length == 0 ) return true ;
    int [ ] var_7 = new int [ 1000 ] ;
    for ( int [ ] var_8 : var_1 ) {
      var_7 [ var_8 [ 1 ] ] += var_8 [ 0 ] ;
      var_7 [ var_8 [ 2 ] ] += - var_8 [ 0 ] ;
    }
    int var_11 = 0 ;
    for ( int var_12 : var_7 ) {
      var_11 += var_12 ;
      if ( var_11 > var_2 ) return false ;
    }
    return true ;
  }
  