Open
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.
🧑💻 언어 및 제출 결과
JavaScript🧠 풀이 설명
📊 시간/공간 복잡도
O(n log n)O(1)📝 추가 설명 (선택)
Set으로 배열의 중복을 제거하는 풀이를 발견했습니다.Set키워드를 떠올리는 자체가 아직은 어색한데 앞으로 이렇게 떠올릴 수 있으면 효율적인 문제 풀이에 도움이 될 거 같습니다.Set문제 풀이 방식이 시간 복잡도O(n), 공간 복잡도O(n)으로 코드가 간결하면서도 시간 복잡도 측면에서도 효율적이라 더 좋은 풀이라고 생각합니다.🙋♂️ 리뷰어에게