-
Notifications
You must be signed in to change notification settings - Fork 126
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 6 #898
base: main
Are you sure you want to change the base?
[Jay-Mo-99] Week 6 #898
Conversation
if (len(temp) == 0) : | ||
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.
안녕하세요, @Jay-Mo-99 님,
개인 선호 차이인것 같습니다만, 아래와 같이 마무리해도 좋을것 같습니다. 😀
if (len(temp) == 0) : | |
return True | |
else: | |
return False | |
return len(temp) == 0 |
또는
if (len(temp) == 0) : | |
return True | |
else: | |
return False | |
return not temp |
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에 바로 조건문을 입력하면 코드 수를 줄일수 있군요. if~else 구조 대신에 자주 사용해보도록 해봐야 겠어요. 피드백 감사합니다.
#Time Complexity: O(N) | ||
#- while : s와 e가 만날때까지 최대 N번 반복된다. 각 반복에서의 연산들은 O(1)에 해당된다. -> O(N) | ||
|
||
|
||
#Space Complexity: O(1) | ||
#- s,e,max_area: 변수는 상수로 작용된다 -> O(1) |
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.
👍 이번 한주도 수고하셨습니다..!
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.