HONGJOO/1월2주차/2문제#122
Merged
zaqquum merged 2 commits intoAlgorithmStudy-Allumbus:mainfrom Jan 18, 2025
Merged
Conversation
Mingguriguri
approved these changes
Jan 12, 2025
Collaborator
Mingguriguri
left a comment
There was a problem hiding this comment.
노션에 정리된 내용도 확인해보았는데, 정말 잘 정리하셨네요! 동작 과정과 문제 해결에 도움이 될 내용도 함께 포함되어 있어 보면서 '이렇게도 정리할 수 있구나' 하고 많이 배웠습니다! 😊
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌱WIL
🚀주간 목표 문제 수: 2개
백준 #15654. N과 M (5): 백트래킹 / 실버3
정리한 링크: (바로가기)
🚩플로우 (선택)
resultcheck,element🚩제출한 코드
💡TIL
*의 기능 : 튜플 , 리스트 unpacking백준 #15652. N과 M (4): 백트래킹 / 실버3
정리한 링크: (바로가기)
🚩플로우 (선택)
(1) m == M ,즉 result안에 M 개 들어가 있으면, 출력
(2) m번째 자리에 n이 들어간 경험이 있는지 확인 - check[m][n-1] == 0
-> 사용 가능
조건 2 : 첫 result 원소면 바로 등록
조건 3 : 아니면 , 이전 자리수에 등록된 result 원소 값보다 커야지 등록
(3)m+1 인 재귀 함수 수행
(4) m 번째 자리 수에서 들어갈 1~N수 탐색 완료하면
-> check[m] 은 모두 0으로 리셋하고, m-1 자리 수로 backtracking
🚩제출한 코드
💡TIL