[Programmers] 모의고사 (완전탐색)
Python def solution(answers): result = [] one = [1, 2, 3, 4, 5] two = [2, 1, 2, 3, 2, 4, 2, 5] three = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5] tem...
Python def solution(answers): result = [] one = [1, 2, 3, 4, 5] two = [2, 1, 2, 3, 2, 4, 2, 5] three = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5] tem...
Python def solution(bridge_length, weight, truck_weights): answer = 0 q = [0] * bridge_length while q: answer += 1 q.pop(0) ...
Python import collections def solution(priorities, location): answer = 0 q: deque = collections.deque([(v, i) for i, v in enumerate(priorities)]) ...
Python def solution(progresses, speeds): answer = [] day = 0 count = 0 while len(progresses) > 0: if progresses[0] + speeds[0...
Python # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next...