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

[haklee] week 7 #484

Merged
merged 2 commits into from
Sep 28, 2024
Merged

[haklee] week 7 #484

merged 2 commits into from
Sep 28, 2024

Conversation

haklee
Copy link
Contributor

@haklee haklee commented Sep 22, 2024

답안 제출 문제

체크 리스트

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

@haklee haklee requested a review from a team as a code owner September 22, 2024 15:50
@github-actions github-actions bot added the py label Sep 22, 2024
Copy link
Contributor

@bky373 bky373 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

number-of-islands/haklee.py Show resolved Hide resolved

class Solution:
def uniquePaths(self, m: int, n: int) -> int:
return comb(m + n - 2, n - 1)
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

Choose a reason for hiding this comment

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

와 역시 이래서 파이썬 파이썬 하는군요 ㅋㅋ
저도 TS에서 조합을 사용했는데, 부동소수점 문제로 정확한 계산을 못하더라구요. 그런데 파이썬은 이걸 스무스하게 해결해주네요👍

Copy link
Contributor

@HC-kang HC-kang left a comment

Choose a reason for hiding this comment

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

항상 코드와 해설 잘 보고있습니다 @haklee 님!
이번 한 주도 고생 많으셨습니다!

항상 @haklee 님 코드는 꼭 보러오게 되네요 ㅎㅎ 거의 주간 학리 매거진같아요

number-of-islands/haklee.py Show resolved Hide resolved
for j in range(n):
if matrix[i][j] == 0:
col_to_change.add(i)
row_to_change.add(j)
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 Author

Choose a reason for hiding this comment

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

추가했습니다!


class Solution:
def uniquePaths(self, m: int, n: int) -> int:
return comb(m + n - 2, n - 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

와 역시 이래서 파이썬 파이썬 하는군요 ㅋㅋ
저도 TS에서 조합을 사용했는데, 부동소수점 문제로 정확한 계산을 못하더라구요. 그런데 파이썬은 이걸 스무스하게 해결해주네요👍

@haklee haklee merged commit 480e4b8 into DaleStudy:main Sep 28, 2024
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.

3 participants