-
-
Notifications
You must be signed in to change notification settings - Fork 247
[shinheekim] WEEK 01 solutions #1701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a solution for the "Contains Duplicate" LeetCode problem using a HashSet-based approach to detect duplicate elements in an array.
- Adds a Java solution that uses HashSet to track visited elements
- Leverages the HashSet.add() method's return value to efficiently detect duplicates
- Returns true immediately when a duplicate is found, false when all elements are unique
Comments suppressed due to low confidence (1)
contains-duplicate/shinheekim.java:8
- [nitpick] The variable name 'n' is too generic and unclear. Consider using a more descriptive name like 'num' or 'element' to improve code readability.
for (int n : nums){
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모든 commit된 문제 풀이 파일에는 마지막 줄을 갱신하셔서 줄갱을 포함시켜 주시며 감사하겠습니다!
줄갱이 없으면 CI 가 진행이 안되요 ㅜ.ㅜ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
댓글 남겨주신 파일 포함 모든 파일에 한 줄씩 띄워놓고 있습니다~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘 푸셨습니다!
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!