Skip to content

Conversation

totschka
Copy link
Contributor

@totschka totschka commented Dec 9, 2024

답안 제출 문제

체크 리스트

  • PR을 프로젝트에 추가하고 Week를 현재 주차로 설정해주세요.
  • 바로 앞에 PR을 열어주신 분을 코드 검토자로 지정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 Status를 In Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

@totschka totschka added the ts label Dec 9, 2024
@totschka totschka self-assigned this Dec 9, 2024
@totschka totschka requested a review from a team as a code owner December 9, 2024 13:13
@totschka totschka changed the title [totschka] Week 1 [TotschKa] Week 1 Dec 9, 2024
@totschka totschka requested a review from thispath98 December 9, 2024 13:14
@totschka totschka force-pushed the main branch 2 times, most recently from 041c4a2 to 0269bdd Compare December 10, 2024 15:04
Comment on lines +3 to +11
const counter = {};
for (const n of nums) {
if (!counter[n]) {
counter[n] = 1;
} else {
return true;
}
}
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.

다음과 같이 Set을 활용하는 방법도 있을것 같아요 :)
new Set(nums).size !== nums.length;

@TonyKim9401
Copy link
Contributor

안녕하세요 @totschka 님.
자바스크립트를 활용한 문제 풀이가 순항중이신것 같네요!
혹시 여유가 되신다면 각 문제 풀이 코드 상단에 시간, 공간 복잡도와 간단한 이유도 적어주시면 효율성 파악에도 도움이 될 것 같습니다.
15주동안 파이팅입니다!

@SamTheKorean SamTheKorean merged commit 2bc7a44 into DaleStudy:main Dec 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants