
Programmers / 구명보트 / Python 파이썬
·
coding test - python/Programmers
*문제 출처는 프로그래머스에 있습니다. 문제 제목: 구명보트 (2단계) 문제 사이트: https://programmers.co.kr/learn/courses/30/lessons/42885 모범 답안 def solution(people, limit): answer = 0 people.sort() i = 0 j = len(people) - 1 while i