Skip to content

[gomgom22] Week1 #687

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 14 commits into from
Dec 16, 2024
Merged

[gomgom22] Week1 #687

merged 14 commits into from
Dec 16, 2024

Conversation

Yjason-K
Copy link
Contributor

답안 제출 문제

체크 리스트

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

@Yjason-K Yjason-K added the ts label Dec 12, 2024
@Yjason-K Yjason-K self-assigned this Dec 12, 2024
@Yjason-K Yjason-K requested a review from a team as a code owner December 12, 2024 12:21
@Yjason-K Yjason-K requested a review from Jay-Mo-99 December 12, 2024 12:22
Comment on lines 8 to 16
let unique: Set<number> = new Set([]);
for (const num of nums) {
if (unique.has(num)) {
return true
} else {
unique.add(num)
}
}
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과 List의 길이를 비교하는 방법도 참고하시면 좋을것 같습니다 :)
new Set(nums).size !== nums.length;

* @param {string} s - 정제할 물자열
* @returns {string} - 소문자 알파벳과 숫자로 이루어진 문자열
*/
const refinePhrase = (s:string) : string => s.toLowerCase().replace(/[^a-z0-9]/g, '');
Copy link
Contributor

Choose a reason for hiding this comment

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

정재 로직을 메서드화 하여 문제의 핵심인 투포인터가 눈에 띄는 좋은 풀이 방법인것 같습니다 :)

Copy link
Contributor

@TonyKim9401 TonyKim9401 left a comment

Choose a reason for hiding this comment

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

코드 가독성은 물론 자세한 설명이 코드 리뷰하는데 너무나도 편하게 진행할 수 있었습니다.
남은 14주도 파이팅입니다!

@TonyKim9401
Copy link
Contributor

TonyKim9401 commented Dec 13, 2024

안녕하세요 @Yjason-K 님!
혹시 계속해서 워크플로우가 실패하신다면 아래의 링크를 확인해 주세요!
#664 (comment)

@rivkode rivkode mentioned this pull request Dec 14, 2024
9 tasks
@Yjason-K Yjason-K merged commit bcde25c into DaleStudy:main Dec 16, 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.

2 participants