Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions contains-duplicate/shinheekim.java
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

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import java.util.HashSet;
import java.util.Set;

class Solution {
public boolean containsDuplicate(int[] nums) {
Set<Integer> visited = new HashSet<>();

for (int n : nums){
if (!visited.add(n)){
return true;
}
}
return false; // 모든 값이 고유할 때
}
}
16 changes: 16 additions & 0 deletions two-sum/shinheekim.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Solution {
public int[] twoSum(int[] nums, int target) {
int[] result = new int[2];

for (int i = 0; i < nums.length; i++){
for (int j = i + 1; j < nums.length; j++){
if (nums[i] + nums[j] == target){
result[0] = i;
result[1] = j;
return result;
}
}
}
return null;
}
}