[Level 2] 주식가격

나며기·2021년 10월 6일
0

programmers

목록 보기
68/111
post-thumbnail
def solution(prices):
    answer = [0]*len(prices)
    for i in range(len(prices)):
        for j in range(i+1,len(prices)):
            answer[i] += 1
            if prices[i] > prices[j]:
                break
    return answer
profile
PLUS ULTRA

0개의 댓글