-
-
Notifications
You must be signed in to change notification settings - Fork 195
[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
[rivkode] Week 2 #743
Conversation
There was a problem hiding this 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
def threeSum(self, nums: List[int]) -> List[List[int]]: | ||
result = [] | ||
return result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안 푸신 문제 파일은 commit에서 제외를 부탁드립니다
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
만약 제가 면접관이라면 문제 제약 조건을 숙지하신 어필은 좋지만, n이 45보다 작은 경우에도 계산하게 되는 점에 대해 물어볼 것 같습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아..! 제가 입력값에 대한 사용을 깜빡하였습니다. 수정하였습니다. 감사합니다 :)
입력값에 대한 내용이 아니었군요. 음 .. 조금 더 고민해보겠습니다. n이 45보다 작으면 불필요한 연산이 추가되어보입니다.
solution = Solution() | ||
|
||
s = "nagaram" | ||
t = "anagram" | ||
|
||
result = solution.isAnagram(s, t) | ||
print(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python Standard Library 중 unittest를 사용해보시면 좋을 것 같습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다. 앞으로의 test는 unittest를 사용하겠습니다
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.