Skip to content

Conversation

@zinnnn37
Copy link
Contributor

🧷 문제 링크

0 만들기

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

입력받은 N에 대해 +, -, 연산자를 조합해 0을 만들 수 있는 모든 경우의 수 출력하기

🔍 풀이 방법

백트래킹,,
공백 나오면 숫자 계속 자릿수 올려준 다음 nums 배열에 저장
공백 처리 끝나면 numsops 확인하면서 계산 진행
결과가 0인 경우 출력
각 테스트케이스마다 개행으로 구분해야 하며 ASCII Code 순서대로 출력해야 함
그래서 공백부터 확인해야함

private static final String OPS = " +-";

⏳ 회고

백트래킹 어려웡

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