Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

지게차로 창고에서 접근이 가능한 해당 종류의 컨테이너 모두 꺼낸다.
접근이 가능한 컨테이너는 4면 중 적어도 1면이 창고 외부와 연결된 컨테이너를 말함.
알파벳 하나로만 출고 요청이 들어올 경우 -> 접근 가능한 컨테이너를 꺼냄
같은 알파벳이 두 번 반복된 경우 -> 요청된 종류의 모든 컨테이너를 꺼냄
모든 요청 수행한 수 남은 컨테이너 수 구하기

🔍 풀이 방법

request를 하나씩 실행하면서 1번 2번 케이스 분류 후
bfs 알고리즘인 check함수 통해서 접근 가능 여부 확인하고 삭제시킴

⏳ 회고

차근히 풀면된다

@suyeun84 suyeun84 self-assigned this Sep 18, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Sep 18, 2025
@suyeun84 suyeun84 merged commit 723d1af into main Sep 18, 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.

2 participants