[프로그래머스] 다리를 지나는 트럭
import java.util.*; class Solution { class Truck{ int weight; int enterTime; Truck(int weight, int enterTime){ this.weight = weight; this.enterTime = enterTime; } } public int solution(int bridge_length, int weight, int[] truck_weights) { int answer = 0; int accumulateWeight = 0; Queue bridge = new LinkedList(); Queue waiting = new LinkedList(); for(int i=0; i
2020.03.30