LeetCode(1094 拼車)

如題 最直接的作法直接把每一個站位的人數算出來再遍歷比較便可web public static boolean carPooling(int[][] trips, int capacity) { Map<Integer, Integer> peos = new HashMap<Integer, Integer>();// 每一個候車點的人數 for (int i = 0; i < trip
相關文章
相關標籤/搜索