Skip to content

[rivkode] Week 2 #743

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 2 commits into from
Dec 22, 2024
Merged

[rivkode] Week 2 #743

merged 2 commits into from
Dec 22, 2024

Conversation

rivkode
Copy link
Member

@rivkode rivkode commented Dec 18, 2024

답안 제출 문제

체크 리스트

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

@rivkode rivkode requested a review from a team as a code owner December 18, 2024 15:37
@github-actions github-actions bot added the py label Dec 18, 2024
@rivkode rivkode requested a review from ysle0 December 18, 2024 15:38
Copy link
Contributor

@EgonD3V EgonD3V left a comment

Choose a reason for hiding this comment

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

2주차도 수고 많으셨습니다 3주차도 화이팅입니다

3sum/rivkode.py Outdated
Comment on lines 6 to 8
def threeSum(self, nums: List[int]) -> List[List[int]]:
result = []
return result
Copy link
Contributor

Choose a reason for hiding this comment

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

안 푸신 문제 파일은 commit에서 제외를 부탁드립니다

Copy link
Member Author

Choose a reason for hiding this comment

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

넵! 수정하여 commit 하였습니다.

def climbStairs(self, n: int) -> int:
stage = [1, 2, 3]

for i in range(3, 45):
Copy link
Contributor

Choose a reason for hiding this comment

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

만약 제가 면접관이라면 문제 제약 조건을 숙지하신 어필은 좋지만, n이 45보다 작은 경우에도 계산하게 되는 점에 대해 물어볼 것 같습니다

Copy link
Member Author

@rivkode rivkode Dec 22, 2024

Choose a reason for hiding this comment

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

아..! 제가 입력값에 대한 사용을 깜빡하였습니다. 수정하였습니다. 감사합니다 :)

입력값에 대한 내용이 아니었군요. 음 .. 조금 더 고민해보겠습니다. n이 45보다 작으면 불필요한 연산이 추가되어보입니다.

Comment on lines +20 to +26
solution = Solution()

s = "nagaram"
t = "anagram"

result = solution.isAnagram(s, t)
print(result)
Copy link
Contributor

Choose a reason for hiding this comment

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

Python Standard Library 중 unittest를 사용해보시면 좋을 것 같습니다

Copy link
Member Author

Choose a reason for hiding this comment

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

감사합니다. 앞으로의 test는 unittest를 사용하겠습니다

@rivkode rivkode merged commit 8f52fc5 into DaleStudy:main Dec 22, 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