@@ -0,0 +1,601 @@
+public class _1094CarPooling %7B%0A  public boolean carPooling(int%5B%5D%5B%5D trips, int capacity) %7B%0A    int stops = 0;%0A    for (int%5B%5D trip : trips) %7B%0A      stops = Math.max(stops, trip%5B2%5D);%0A    %7D%0A    int%5B%5D up = new int%5Bstops + 1%5D;%0A    int%5B%5D down = new int%5Bstops + 1%5D;%0A    for (int i = 0; i %3C trips.length; i++) %7B%0A      int%5B%5D trip = trips%5Bi%5D;%0A      up%5Btrip%5B1%5D%5D += trip%5B0%5D;%0A      down%5Btrip%5B2%5D%5D += trip%5B0%5D;%0A    %7D%0A    int persons = 0;%0A    for (int i = 0; i %3C= stops; i++) %7B%0A      persons -= down%5Bi%5D;%0A      persons += up%5Bi%5D;%0A      if (persons %3E capacity) %7B%0A        return false;%0A      %7D%0A    %7D%0A    return true;%0A  %7D%0A%7D%0A

Add _1094CarPooling