[Programmers] 구명보트
Python def solution(people, limit): answer = 0 start = 0 end = len(people) - 1 people.sort() while start <= end: answer += 1 ...
Python def solution(people, limit): answer = 0 start = 0 end = len(people) - 1 people.sort() while start <= end: answer += 1 ...
Python def solution(brown, yellow): total = brown + yellow for weight in range(total, 2, -1): if total % weight == 0: height = to...
Python def solution(n, lost, reserve): set_reserve = set(reserve) - set(lost) set_lost = set(lost) - set(reserve) for i in set_reserve: i...
Python import collections def solution(prices): answer = [] q: deque = collections.deque(prices) while q: count = 0 temp = q.popl...
Python from itertools import permutations def is_prime_number(a): if(a<2): return False for i in range(2,a): if(a%i==0): ...