프로그래머스/코딩연습23 [프로그래머스] 다리를 지나는 트럭(42583)(java) 원본 문제 : https://programmers.co.kr/learn/courses/30/lessons/42587 문제 풀이 : https://developerdk.tistory.com/16 import java.util.Iterator; import java.util.LinkedList; class Truck { int weight; int distance; Truck(int weight, int distance){ this.weight = weight; this.distance = distance; } } class Solution { public static int solution(int bridge_length, int weight, int[] truck_weights) { int count =.. 2019. 5. 29. [프로그래머스] 프린터 원본 문제 : https://programmers.co.kr/learn/courses/30/lessons/42587 풀이 참고 : https://developerdk.tistory.com/15 import java.util.LinkedList; import java.util.List; class Document { int priority; int index; Document(int priority, int index) { this.priority = priority; this.index = index; } } class Solution { public static int solution(int[] priorities, int location) { int answer = 1; LinkedList list .. 2019. 5. 29. [프로그래머스] 실패율 (42889)(java) 원본 문제 : https://programmers.co.kr/learn/courses/30/lessons/42889 이전에 풀었던 방법 : https://youjourney.tistory.com/4 import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; class Stage implements Comparable { int stage; Double failureRate; Stage(int stage, double failureRate){ this.stage = stage; this.failureRate = failureRate.. 2019. 5. 28. 이전 1 다음