최근 포스트

[Programmers] 구명보트

최대 1 분 소요

Python def solution(people, limit): answer = 0 start = 0 end = len(people) - 1 people.sort() while start <= end: answer += 1 ...

[Programmers] 카펫 (완전탐색)

최대 1 분 소요

Python def solution(brown, yellow): total = brown + yellow for weight in range(total, 2, -1): if total % weight == 0: height = to...

[Programmers] 체육복

최대 1 분 소요

Python def solution(n, lost, reserve): set_reserve = set(reserve) - set(lost) set_lost = set(lost) - set(reserve) for i in set_reserve: i...

[Programmers] 주식가격

최대 1 분 소요

Python import collections def solution(prices): answer = [] q: deque = collections.deque(prices) while q: count = 0 temp = q.popl...