programmers 150369 java
[프로그래머스, 150369] 택배 배달과 수거하기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/150369 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 83.4 MB, 시간: 20.63 ms사용 알고리즘: 구현class Solution { public long solution(int cap, int n, int[] deliveries, int[] pickups) { long answer = 0; // 가장 뒤에 있는 배달지 int lastDelivery = -1; for(int i = n - 1; i >= 0; i--) { ..