프로그래밍/기타
2020. 9. 19.
프로그래머스 - 프린터 (C#)
using System.Collections.Generic; public class Solution { public int solution(int[] priorities, int location) { Queue printer = new Queue(); Queue priorityPrinter = new Queue(); for (int i = 0; i 0) { var dequeue = printer.Dequeue(); bool max = true; foreach (var peek in printer)..