Skip to content
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

[mallayon] Week 3 #792

Merged
merged 3 commits into from
Dec 28, 2024
Merged

[mallayon] Week 3 #792

merged 3 commits into from
Dec 28, 2024

Conversation

mmyeon
Copy link
Contributor

@mmyeon mmyeon commented Dec 27, 2024

답안 제출 문제

체크 리스트

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

@mmyeon mmyeon self-assigned this Dec 27, 2024
@mmyeon mmyeon requested a review from a team as a code owner December 27, 2024 00:35
@github-actions github-actions bot added the ts label Dec 27, 2024
@mmyeon mmyeon requested a review from gwbaik9717 December 27, 2024 00:36
Copy link
Contributor

@gwbaik9717 gwbaik9717 left a comment

Choose a reason for hiding this comment

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

같은 js 언어 사용해서 반갑네요. 코드가 정말 깔끔하고, 무엇보다 주석 부분이 깔끔해서 이해하기 용이했습니다. 수고하셨습니다!

*/

function productExceptSelf(nums: number[]): number[] {
let result: number[] = Array(nums.length).fill(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

nums.length 가 여러번 쓰이는 것 같아요. 변수화를 통해 가독성을 조금 더 높여봐도 좋을 것 같아요!

Copy link
Contributor

Choose a reason for hiding this comment

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

nums.length를 변수에 저장하는 것은 호불호가 갈릴 수도 있다는 생각이 들었습니다. 저는 오히려 기억해야 할 변수가 하나 줄어서 코드를 읽기 더 편했던 것 같아요 :)

@DaleSeo
Copy link
Contributor

DaleSeo commented Dec 28, 2024

@gwbaik9717 님, 답안 코드에 별 문제가 없으시다면 승인 좀 부탁드리겠습니다.

@mmyeon mmyeon merged commit 1a8b5c6 into DaleStudy:main Dec 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants