Conversation
🔥2025-08 챌린지 진행 상황👉 그리디👉 구현 |
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
🚀주간 목표 문제 수: 4개
프로그래머스 #81302. 거리두기 확인하기: 백트레킹/ lv2
정리한 링크: (바로가기)
🚩제출한 코드
백준 #2468. 안전영역: DP/ 실버1
정리한 링크: (바로가기)
🚩제출한 코드
백준 #6603. 로또: 백트레킹 / 실버2
정리한 링크: (바로가기)
🚩플로우 (선택)
매개 변수
level : 출력 조합 result에 현재 선택한 원소가 들어갈 위치
idx : 현재 level 에서 사용 가능한 원소들의 범위 인덱스 idx ~ -1
→ 조합의 경우 , 이전 level(level-1)선택한 원소의 위치 i 보다 뒤에 있는 숫자 조합들 선택하면 된다.
종료 조건
level == 6 # 출력 배열 result의 원소가 6개를 충족할 경우
함수 정의
level == 6 이면 함수 종료
idx ~ k 범위의 숫자를 출력 변수 result[level] 에 대입
level+1 으로 이동 ,탐색 범위를 idx → i+1 로 이동
*조합은 현 level에서 선택한 i보다 작은 숫자는 탐색 할 필요 없음
🚩제출한 코드
백준 #16987. 계란으로 계란치기: 백트레킹/ 골드5
정리한 링크: (바로가기)
🚩플로우 (선택)
[1] backtracking 재귀 함수 상태 매개변수
선택한 계란idx, 생존 달걀의 idx의 리스트 , 현 내구도 및 무게 상태
[2] 종료 조건
(1) 선택 계란 다 선택 했을때 idx >= N 일때
(2) 남은 계란 다 깼을떄
=> 부순 계란 최대값 반환
[3] 나머지 동작 과정
🚩제출한 코드
##백준 #1230. 문자열 거리: DP/ 골드1
정리한 링크: (바로가기)
🚩제출한 코드