Merged
Conversation
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.
🧷 문제 링크
캠프 준비
🧭 풀이 시간
15분
👀 체감 난이도
✏️ 문제 설명
주어진 문제를 2개 이상 뽑아서 전체 난이도 합이
L이상R이하이며 가장 어려운 문제와 가장 쉬운 문제의 난이도 차가X이상인 경우의 수🔍 풀이 방법
정렬 + 조합
문제들을 먼저 정렬해두면 값 확인할 때
depth - 1과0끼리만 비교하면 됨※ 일일이 조합 구할 필요 없이
dfs진행하면서 바로바로 값 확인할 수 있음⏳ 회고
questions의 인덱스는selected의 값임을 유념하자