[프로그래머스] [Level 4]무지의 먹방 라이브
import java.util.*; class Solution { class food{ int turn; int remainder; food(int turn, int remainder){ this.turn = turn; this.remainder = remainder; } } public int solution(int[] food_times, long k) { int answer = 0; List remainFood = new LinkedList(); for(int i=0; i0){ remainFood.add(new food(remainFood.get(0).turn,remainFood.get(0).remainder)); remainFood.remove(0); }else{ remainFood.remove(..
2020.04.14