Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Oct 20, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

소괄호,중괄호,대괄호로 이루어진 문자열이 있음.
괄호가 올바르게 잘 열리고 닫힌 경우에 옳은 문자열이라고 함.
괄호를 한칸씩 왼쪽으로 회전할때, 옳은 문자열의 전체 개수를 구하기.

🔍 풀이 방법

스택
그냥 한칸씩 회전하면서 스택 이용해서 괄호 쌍이 잘 맞는지 체크하면 댐.

⏳ 회고

뭔가 O(N)으로 한번에 옳은 문자열을 탐색할 수 있지 않을까하는 생각으로 접근하다가 오래걸림.
그냥 더럽게 짜버림 ㅎ

@lkhyun lkhyun self-assigned this Oct 20, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Oct 20, 2025
@ShinHeeEul ShinHeeEul merged commit 58158a4 into main Oct 20, 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