Skip to content

Conversation

@ymir0804
Copy link

@ymir0804 ymir0804 commented Nov 14, 2025

답안 제출 문제

  • Contains Duplicate
  • Two Sum
  • Top K Frequent Elements

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

if (idx == -1) {
continue;
}
list.remove(idx);
Copy link
Contributor

Choose a reason for hiding this comment

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

오 list 에서 하나씩 지워나가는것도 방법이네요👍

Copy link
Author

Choose a reason for hiding this comment

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

@geegong
제가 자료구조에는 익숙하지가 않아서.. 좀 무식한 방법을 사용한 것 같은데.. 시간복잡도상 상관이 없는지는 잘 모르겠네요 ㅠㅠ


class Solution {
public int[] topKFrequent(int[] nums, int k) {
Set<Integer> unique = Arrays.stream(nums).boxed().collect(Collectors.toSet());
Copy link
Contributor

Choose a reason for hiding this comment

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

오 boxed() 메소드는 몰랐네요ㅎㅎ
덕분에 하나 배워갑니다~ 굳이 항상 mapToInt() 요런식으로 할 필요가 없네요 😅

Copy link
Contributor

@geegong geegong left a comment

Choose a reason for hiding this comment

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

첫 주차 문제풀이 넘 고생많으셨습니다~ 👍
(+ 작성해주신 코드 마지막에 빈 한 줄씩 추가 해줘야 병합할 수 있을거같아요~)
https://github.com/DaleStudy/leetcode-study/wiki/%EB%8B%B5%EC%95%88-%EC%A0%9C%EC%B6%9C-%EA%B0%80%EC%9D%B4%EB%93%9C#3-%ED%8C%8C%EC%9D%BC%EC%9D%98-%EB%A7%88%EC%A7%80%EB%A7%89%EC%97%90-%EA%B0%9C%ED%96%89%EB%AC%B8%EC%9E%90%EB%A5%BC-%EC%B6%94%EA%B0%80

}
return false;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

마지막에 한줄 추가해야 merge가 될거 같아요~~

Copy link
Author

Choose a reason for hiding this comment

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

@geegong 넵 확인했습니다 마지막 한줄 추가하겠습니다!

@ymir0804 ymir0804 changed the title [ymir0916] WEEK 01 solutions [ymir0804] WEEK 01 solutions Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Solving

Development

Successfully merging this pull request may close these issues.

2 participants