Skip to content

Conversation

@LiiNi-coder
Copy link
Contributor

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/154539

🧭 풀이 시간

40 분

👀 체감 난이도

✏️ 문제 설명

  • 수열이 주어지고, 각 수열마다의 큰수를 넣어서 리턴. 큰수는 해당 위치에서 뒤에있는 큰 수 중 가장 가까운 수를 말함.

🔍 풀이 방법

  • O(n)으로 끝내기 위해 큰수 계산이 필요한것들을 저장하며, 가장 위에것을 토대로 계산이 필요 -> 스택 사용

⏳ 회고

  • 이러한 문제에서 스택을 쓰는 것을 알아내는데에 시간이 꽤걸림

@LiiNi-coder LiiNi-coder added the success 👍 해설을 보지 않고 풀었을 때 label Nov 12, 2025
@ShinHeeEul ShinHeeEul merged commit 360f283 into main Nov 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants