Closed ji-0630 closed 1 year ago
def solution(array, height):
answer = 0
for i in sorted(array):
if i <= height:
answer +=1
return len(array)-answer
def solution(array, height):
array.append(height)
array.sort(reverse=True)
return array.index(height)
def solution(array, height):
return sum(1 for a in array if a > height)
문제 설명