Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solved 오큰수 - 188ms 12mb #230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

solved 오큰수 - 188ms 12mb #230

wants to merge 1 commit into from

Conversation

euny0ung
Copy link
Member

💿 풀이 문제

#222

📝 풀이 후기

구현은 쉬운데 아이디어 떠올리기가 어려웠습니다.

📚 문제 풀이 핵심 키워드

  • 거꾸로 탐색하면서 스택이 비어있지않고 스택의 top이 현재 수보다 작으면 pop합니다. 만약 스택이 비어있으면 맨 끝수라는 뜻이니 정답은 -1입니다. 그렇지 않으면 정답은 스택의 top입니다. 위 조건에 걸리지 않는 경우는 무조건 스택에 넣어줍니다.

🤔 리뷰로 궁금한 점

🧑‍💻 제출자 확인 사항

  • Convention(commit, pr 제목)이 올바른가요?
  • 괄호 내 안내문은 삭제하셨나요?
  • 본인의 체감 난도 Label을 등록했나요?
  • 제출자 확인 사항을 모두 확인하셨나요?

@euny0ung euny0ung added C++ C++로 풀이한 경우 선택합니다. Hard 책정 혹은 체감 난이도 어려움 시 선택합니다. labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ C++로 풀이한 경우 선택합니다. Hard 책정 혹은 체감 난이도 어려움 시 선택합니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant