Skip to content

Commit 3605e2a

Browse files
authored
Create failure_percent.py
1 parent efe3ec7 commit 3605e2a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def solution(N, stages):
2+
stage_people = {}
3+
for stage in stages:
4+
if stage in stage_people:
5+
stage_people[stage] += 1
6+
else:
7+
stage_people[stage] = 1
8+
answer = []
9+
for stage in list(stage_people.keys()):
10+
# 여기서 정렬하려면 list의 sort가 나아보인다.
11+
return answer

0 commit comments

Comments
 (0)