Skip to content

Conversation

@zinnnn37
Copy link
Contributor

@zinnnn37 zinnnn37 commented Oct 23, 2025

🧷 문제 링크

가르침

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

K개의 알파벳만 가르칠 수 있음
가르치는 단어는 anta로 시작해 tica로 끝남
N개의 단어를 배울 때 모두 읽을 수 있는 단어의 최댓값

🔍 풀이 방법

백트래킹..
antatica는 지우고 a n t i c은 확인 제외(true 처리)
알파벳 26개 확인하면서 백트래킹
K - 5만큼 확인했을 때 단어들 확인해서 alphafalse면 건너뛰기

⏳ 회고

boolean[] 대신 비트마스킹 가능하겠다

@ShinHeeEul ShinHeeEul merged commit 5afc08d into main Oct 23, 2025
1 check passed
@zinnnn37 zinnnn37 added the success 👍 해설을 보지 않고 풀었을 때 label Oct 23, 2025
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