<프로그래머스 문제풀이: 실패율> Level 1 - 파이썬
카카오 블라인드 리크루트먼트 문제이다: def solution(N, stages): stage_result = [] for i in range(1, N+1): stage_finished = len([j for j in stages if j > i]) on_stage = stages.count(i) if on_stage == 0: failed = 0 else: failed = on_stage/(on_stage+stage_finished) if stage_finished == 0: failed = 1 stage_result.append([i, failed]) return [k[0] for k in sorted(stage_result, key=lambda x: x[1], reverse=True)] 카카오 문제..