프로그래머스 - 실패율 2019 KAKAO BILND RECRUITMENT (카카오)
·
Algorithm/programmers
시간초과 문제import Foundationfunc solution(_ N:Int, _ stages:[Int]) -> [Int] { let failedList: [Int] = Array(1...N).map { index in stages.filter { $0 == index }.count } let challengedList: [Int] = Array(1...N).map { index in stages.filter { $0 >= index }.count } var list: [(Int,Double)] = Array(1...N).map { index in let failed = failedList[index-1] let chall..
ytw_developer
'실패율' 태그의 글 목록