[SeongA] WEEK 09 solutions#1914
Merged
delight010 merged 2 commits intoDaleStudy:mainfrom Sep 20, 2025
Merged
Conversation
Lustellz
approved these changes
Sep 20, 2025
Contributor
There was a problem hiding this comment.
오! swift에서는 null이 nil인가 보네요. 신기했어요.
근데 사실 저 이 문제를 제대로 이해하진 못했는데, fast와 slow라는 네이밍을 다들 사용하고 계시더라구요. 혹시 그 이유를 아시나요?
Contributor
Author
There was a problem hiding this comment.
맞아요 swift에는 null을 nil로 써요.
플루이드의 순환 알고리즘(일명 토끼와 거북이 알고리즘)으로 풀었기 때문에. 2칸 이동하는 토끼 = fast, 1칸 이동하는 거북이 = slow라는 네이밍을 쓰고 있어요.
Contributor
There was a problem hiding this comment.
나머지 문제들은 난이도가 올라가는 점과 시간이 없는 부분 때문에 확인을 못했는데 생각보다 어려운 문제는 아니었나 싶기도 하네요. 한 번도 접해본 적 없는 언어로 된 코드는 거의 처음 보는데 의도가 명확하게 보였습니다!
Contributor
Author
There was a problem hiding this comment.
다른 분이 읽고 이해하는 데 쉬워서 다행입니다!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!