[Programmers] 스킬트리
Python def solution(skill, skill_trees): answer = 0 for skills in skill_trees: temp = list(skill) boolean = True for j in ski...
Python def solution(skill, skill_trees): answer = 0 for skills in skill_trees: temp = list(skill) boolean = True for j in ski...
Python import heapq def solution(scoville, K): answer = 0 heapq.heapify(scoville) while scoville[0] < K: temp = heapq.heappop(scoville...
Python import collections def solution(s): answer = 0 q: deque = collections.deque(s) table = { ')' : '(', '}' : '{', ...
Python def solution(s): temp = [] for i in s: if not temp: temp.append(i) elif temp[-1] == '(' and i == ')': ...
Python ~~~python def solution(n): answer = [] for i in range(0, n+1): if i == 0: answer.append(0) elif i == 1: ...