-
-
Notifications
You must be signed in to change notification settings - Fork 195
[SAM] WEEK 14 solutions, #213
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
while rows > 0 and cols > 0: | ||
for _ in range(cols): | ||
col += direction | ||
result.append(matrix[row][col]) | ||
rows -= 1 | ||
|
||
for _ in range(rows): | ||
row += direction | ||
result.append(matrix[row][col]) | ||
cols -= 1 | ||
|
||
direction *= -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.
천재네요... 배우고 갑니다 ㅋㅋ
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문제도 풀 에정이신가요? PR이 아직 Draft 상태여서 여쭙니다. |
Ready for review를 안눌렀군여...! 여쭤봐주셔서 감사합니다! |
No description provided.