-
-
Notifications
You must be signed in to change notification settings - Fork 195
[Jay-Mo-99] Week 1 #686
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
[Jay-Mo-99] Week 1 #686
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.
깔끔하고 가독성 좋은 풀이 방법에 감탄합니다 :)
contains-duplicate/Jay-Mo-99.py
Outdated
if len(list(set(nums))) == len(nums): | ||
return False | ||
else: | ||
return True |
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.
if 문을 활용해서 true/false를 구분한다면 if문 조건식을 그대로 return을 하면 어떨까요?
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.
else 를 안쓰고 return True 해도 괜찮을 것 같네요!
valid-palindrome/Jay-Mo-99.py
Outdated
if temp == temp[::-1]: | ||
return True | ||
else: | ||
return False |
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.
위에 문제와 마찬가지로 조건식을 그대로 return하면 어떨까 합니다!
안녕하세요 @Jay-Mo-99 님! |
안녕하세요,@TonyKim9401 님. 해당 방법으로 rebase문제를 해결 했습니다. 감사합니다. 덧붙여 PR에 대해서 추가 질문이 있습니다. 1. 만약 리뷰가 달렸으면 이제는 문제를 풀고 commit을 추가하지 못하나요? 2. 만약 그렇다면 PR은 최대한 모든 문제를 풀고 그 다음 pull request를 하는게 지향되나요? 아니면 문제를 하나씩 풀고 그때마다 파일 및 커밋 추가 후 push가 더 지향되나요? 3. 한국시간으로 12월 14일까지는 문제를 계속 풀어볼 수 있나요? |
@Jay-Mo-99 안녕하세요 코치 Flynn입니다
|
답변 감사합니다. 참고해서 이번주 과제들 완료하도록 하겠습니다. |
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.
5문제 푸시느라 고생하셨습니다~!
|
||
#removes all non alpha numeric(only accept alphabet and number) items from the s | ||
temp = lower(s) | ||
temp = " ".join(re.split("[^a-zA-Z0-9]*",temp)).replace(" ","") |
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.
temp = ''.join 을 한다면 뒤에 replace를 안해도 될 것 같습니다!
→ temp = "".join(re.split("[^a-zA-Z0-9]*",temp))
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.