-
Notifications
You must be signed in to change notification settings - Fork 0
2회차 #3
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
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.
파이썬에서 제공하는 기능들을 잘 활용하셔서 코드 보면서 공부가 많이 됐습니다 👍
고생하셨습니다!
result = 0 | ||
|
||
for i in range(1, N + 1): | ||
result += sum(P[0:i]) |
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 | ||
|
||
left_arr = arr[:len(arr) // 2] | ||
right_arr = arr[len(arr) // 2:] |
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.
병합정렬을 중간 인덱스 없이 이렇게 표현할 수 있네요 👍
문제
배운점
기타