Skip to content

Conversation

@JHLEE325
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

20분-

👀 체감 난이도

✏️ 문제 설명

배열을 입력받아서 문제에서 제시한 새로운 연산 규칙에 따라 배열을 연산하고
출력 포맷에 맞게 출력하는 문제입니다.
R : 배열 뒤집기, D : 배열 제일 앞에서 1개 빼기 입니다.

🔍 풀이 방법

배열을 실제로 뒤집지 않고 덱을 활용하여 현재 상태에 따라 pollFirst, pollLast를 이용하여 풀었습니다.
문제의 접근방식이나 풀이 자체는 어렵지 않았으나 입력, 출력의 형태가 독특해서 고민했습니다.

⏳ 회고

알고리즘 문제 풀이가 오랜만이어서 출력 시간 최적화로 몇번 틀렸는데 초심을 찾아야될 것 같습니다.

@JHLEE325 JHLEE325 added the success 👍 해설을 보지 않고 풀었을 때 label Jul 12, 2025
@JHLEE325 JHLEE325 closed this Jul 12, 2025
@JHLEE325 JHLEE325 reopened this Jul 12, 2025
@03do-new30 03do-new30 merged commit bfaa0bf into main Jul 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