Skip to content

[TotschKa] Week 1 #661

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

Merged
merged 5 commits into from
Dec 15, 2024
Merged

[TotschKa] Week 1 #661

merged 5 commits into from
Dec 15, 2024

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