Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Aug 2, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/17299

🧭 풀이 시간

10분

👀 체감 난이도

✏️ 문제 설명

자신보다 오른쪽에 있으면서 해당 배열에서 등장한 횟수가 더 많은 수를 오등큰수라고 하자.
오등큰수를 구하자.

🔍 풀이 방법

스택
자신보다 등장한 횟수가 더 많으면 스택에서 빼서 오등큰수를 기록함
모두 순회했을때 스택에 남아있는 것들은 -1로 처리

⏳ 회고

오큰수를 얼마전에 풀었어서 쉬웠다.

@lkhyun lkhyun self-assigned this Aug 2, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Aug 2, 2025
@ShinHeeEul ShinHeeEul merged commit 7d4402c into main Aug 2, 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