Skip to content

Commit f4fc8bd

Browse files
committed
programmers.co.kr 코딩테스트 연습 힙(Heap) 디스크 컨트롤러
문제 링크: https://school.programmers.co.kr/learn/courses/30/lessons/42627 파이썬 소스: https://bit.ly/4bNyGhw
1 parent 470bfea commit f4fc8bd

File tree

1 file changed

+0
-1
lines changed
  • programmers.co.kr 코딩테스트 연습 힙(Heap) 디스크 컨트롤러

1 file changed

+0
-1
lines changed

programmers.co.kr 코딩테스트 연습 힙(Heap) 디스크 컨트롤러/main.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ def solution(jobs: List):
1212
is_idle: bool = True
1313

1414
while len(jobs) > 0 and jobs[0][0] <= current_time:
15-
is_idle = False
1615
[start_time, duration] = jobs.pop(0)
1716
heapq.heappush(heap, [duration, start_time])
1817

0 commit comments

Comments
 (0)