FIFO1 스택/큐 - 프로세스 (프로그래머스) https://school.programmers.co.kr/learn/courses/30/lessons/42587 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr from collections import dequedef solution(priorities, location): prior_list = deque() answer = [] l = len(priorities) prior = deque(sorted(priorities, reverse = True)) for i in range(l): prior_list.append((priorities[i], i)) .. 2025. 1. 18. 이전 1 다음