반응형 다리를 지나는 트럭 프로그래밍/기타 2020. 9. 20. 프로그래머스 - 다리를 지나는 트럭 (C#) // ================================================= // =============== LinkedList로 구현 =============== // ================================================= using System.Collections.Generic; public class Solution { public int solution(int bridge_length, int weight, int[] truck_weights) { LinkedList waitTrucks = new LinkedList(); LinkedList bridgeTrucks = new LinkedList(); for (int i = 0; i < truc.. 이전 1 다음 반응형