Skip to content

Conversation

shinheekim
Copy link
Contributor

@shinheekim shinheekim commented Jul 23, 2025

답안 제출 문제

작성자 체크 리스트

  • Projects의 오른쪽 버튼(▼)을 눌러 확장한 뒤, Week를 현재 주차로 설정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 StatusIn Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

Copy link

@Copilot Copilot AI left a 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){

@shinheekim shinheekim requested review from rivkode and removed request for rivkode July 23, 2025 04:46
@Do-heewan Do-heewan self-requested a review July 23, 2025 05:51
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모든 commit된 문제 풀이 파일에는 마지막 줄을 갱신하셔서 줄갱을 포함시켜 주시며 감사하겠습니다!
줄갱이 없으면 CI 가 진행이 안되요 ㅜ.ㅜ

Copy link
Contributor Author

@shinheekim shinheekim Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

댓글 남겨주신 파일 포함 모든 파일에 한 줄씩 띄워놓고 있습니다~!

Copy link
Contributor Author

@shinheekim shinheekim Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI 실패한 원인을 확인해보니 파일명 규칙 검사에서 실패한 거 같습니다!!
gitignore 추가가 원인인 것으로 보이는데, 한번 수정해보겠습니다~

image

Copy link
Contributor

@Do-heewan Do-heewan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘 푸셨습니다!

@shinheekim shinheekim merged commit 512e1f1 into DaleStudy:main Jul 27, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from Solving to Completed in 리트코드 스터디 5기 Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants