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

[ganu] Week9 #983

Merged
merged 6 commits into from
Feb 8, 2025
Merged

[ganu] Week9 #983

merged 6 commits into from
Feb 8, 2025

Conversation

gwbaik9717
Copy link
Contributor

@gwbaik9717 gwbaik9717 commented Feb 2, 2025

답안 제출 문제

체크 리스트

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

@gwbaik9717 gwbaik9717 requested a review from jdy8739 February 2, 2025 02:53
@gwbaik9717 gwbaik9717 self-assigned this Feb 2, 2025
@gwbaik9717 gwbaik9717 requested a review from a team as a code owner February 2, 2025 02:53
@github-actions github-actions bot added the js label Feb 2, 2025
@gwbaik9717 gwbaik9717 requested review from KwonNayeon and removed request for jdy8739 February 2, 2025 02:55
Comment on lines +15 to +21
if (nums.at(mid - 1) > nums.at(mid)) {
return nums[mid];
}

if (nums.at(mid + 1) < nums.at(mid)) {
return nums[mid + 1];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

mid 값의 경계에 대한 조건을 없애면 코드를 더 단순화할 수 있을 것 같습니다!

Comment on lines +16 to +23
// case 1
cases.push(nums[i - 1]);

// case 2
cases.push(nums[i - 1] * products[i - 1][0]);

// case 3
cases.push(nums[i - 1] * products[i - 1][1]);
Copy link
Contributor

Choose a reason for hiding this comment

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

주석으로 케이스를 구분해주셔서 코드를 읽기 쉬웠습니다! 이번 주도 고생하셨습니다 😊

@gwbaik9717 gwbaik9717 merged commit a911094 into DaleStudy:main Feb 8, 2025
1 check 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.

2 participants