Conversation
- 기존의 재귀를 통한 조합 생성 대신 product를 이용한 방식으로 변경
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.
🔖 푼 문제들
1. 92342 양궁대회
도대체 왜 안되는건질 모르겠다
2. 138476 귤 고르기
풀고 채점해보니 맞다고 나옴. 근데 현재 로직에서 만약 초과했을 때 이전에 선택한 걸 제거하고 다른걸 선택하는 방식으로 가야될 것 같은데 그런 로직 없어도 맞다고 나와서 걍 냅둠.(절대 귀찮아서 그런 건 아님)
3. 138476 이모티콘 할인행사
어우 힘들어. 크게 1) 각각의 이모티콘별 할인율에 대한 모든 조합, 2) 설정된 할인율을 기반으로 플러스 구독자 수와 이모티콘 매출 비용을 계산, 이렇게 2개의 함수를 만듦.
4. 154539 뒤에 있는 큰 수 찾기
쉬운줄 알고 하다가 시간초과. 뒤에서 부터 탐색하면 좋으려나? 하다가 큰 차이 없을 것 같아서 검색해보니 스택으로 풀라고 나옴. 이런 접근법들을 문제를 많이 안풀어보거나 오랜만에 접해볼 때 잘 못 떠올리니까 따로 어디 정리해놔야될 것 같음(마음만 그렇고 하진 않음)
🙏 같이 논의해보고 싶은 것