solved 풍선 터트리기 - 2003.79ms 281MB #237
Open
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.
💿 풀이 문제
#231
📝 풀이 후기
조금 더 효율적으로 가독성있게 풀 수 있었을 것 같은데 그 부분이 아쉬웠습니다. 다른 분들의 풀이를 보고 조금 더 효율적인 방법을 찾아봐야겠습니다.
📚 문제 풀이 핵심 키워드
입력된 배열의 값이 100만이라 for문을 한번 사용하고, 그 안에 logN이내로 순회해야 풀 수 있음을 알 수 있다.
특정 풍선 중심으로 나누어 왼쪽 오른쪽 최소값들을 구하여 비교한다.
🤔 리뷰로 궁금한 점
🧑💻 제출자 확인 사항
🕵️ 리뷰어 확인 사항