알고리즘 (코딩테스트) 풀이
1) https://wnsgml517.tistory.com/78
[프로그래머스] 스택/큐 - 프로세스
문제가 이해가 안되어서... 답을 바로 봐버렸다. 다른 사람 풀이 def solution(priorities, location): answer = 0 place = priorities.index(max(priorities)) while (True): value = max(priorities) if (priorities[place] == value): priorities[
wnsgml517.tistory.com
2) https://wnsgml517.tistory.com/77
[프로그래머스] 스택/큐 - 주식가격
나의 답 def solution(prices): answer = [] * len(prices) for i,value in enumerate(prices): cnt = 0 for index in range(i+1,len(prices)): if prices[index]>=prices[i]: cnt+=1 else: cnt+=1 break answer.append(cnt) return answer 이게 스택을 사용해서
wnsgml517.tistory.com
3) 사전캠프 3주차 듣기

'르탄즈 5기' 카테고리의 다른 글
[TIL] 2024/02/01 (0) | 2024.02.02 |
---|---|
[르탄즈 5기] 1/31 TIL (0) | 2024.01.31 |
[르탄즈 5기] 사전캠프 3주차 후기 (0) | 2024.01.29 |
[르탄즈 5기] 1/26 TIL (1) | 2024.01.26 |
[르탄즈 5기] 1/25 TIL (1) | 2024.01.25 |