Skip to content
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

[Flynn] week 11 #548

Merged
merged 4 commits into from
Oct 26, 2024
Merged

[Flynn] week 11 #548

merged 4 commits into from
Oct 26, 2024

Conversation

obzva
Copy link
Contributor

@obzva obzva commented Oct 22, 2024

답안 제출 문제

체크 리스트

  • PR을 프로젝트에 추가하고 Week를 현재 주차로 설정해주세요.
  • 바로 앞에 PR을 열어주신 분을 코드 검토자로 지정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 Status를 In Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

@obzva obzva marked this pull request as ready for review October 23, 2024 09:01
@obzva obzva requested a review from a team as a code owner October 23, 2024 09:01
Copy link
Contributor

@TonyKim9401 TonyKim9401 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

친절한 설명과 깔끔한 코드에 항상 감탄합니다.
한주 고생하셨습니다!

Comment on lines 24 to 32
curr1, curr2 := head, prev
for curr2.Next != nil {
tmp := curr1.Next
curr1.Next = curr2
curr1 = tmp
tmp = curr2.Next
curr2.Next = curr1
curr2 = tmp
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for curr1, curr2 := head, prev; curr2 != nil && curr2.Next != nil; { tmp1, tmp2 := curr1.Next, curr2.Next curr1.Next, curr2.Next = curr2, tmp1 curr1, curr2 = tmp1, tmp2 }

별 차이는 없지만 마지막 부분 이렇게 바꿀수도 있지 않을까 싶어서 남겨봅니다 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다 훨씬 가독성이 좋네요 :)
바로 반영할게요

@obzva obzva merged commit c3ee69e into DaleStudy:main Oct 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

2 participants