Replies: 1 comment
-
빼먹엇는데 종료조건도 중요합니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
특징
문제로 부터 유추할 수 있는 키워드
푸는 방법
1. 스택 맨 위에 있는 데이터의 의미를 정의한다.
예) 스택 맨 위 = 아직 더 따뜻한 날을 못 찾은 가장 최근 날짜
2. 스택 연산의 의미 정의
예)
push: 현재 온도가 스택 top의 온도보다 낮거나 같을 때
pop: 현재 온도가 스택 top의 온도보다 높을 때
3. 스택 데이터 정의
예) [인덱스, 온도정보] 2가지 정보를 스택에 저장
4. 스택 연산 실행
규칙에 의해 실행하여 문제해결
Beta Was this translation helpful? Give feedback.
All reactions