Skip to content

[river20s] WEEK 09 solutions #1533

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

Merged
merged 1 commit into from
May 31, 2025
Merged

[river20s] WEEK 09 solutions #1533

merged 1 commit into from
May 31, 2025

Conversation

river20s
Copy link
Contributor

@river20s river20s commented May 29, 2025

답안 제출 문제

작성자 체크 리스트

  • 우측 메뉴에서 PR을 Projects에 추가해주세요.
  • Projects의 오른쪽 버튼(▼)을 눌러 확장한 뒤, Week를 현재 주차로 설정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 StatusIn Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

# self.next = None

class Solution:
def hasCycle(self, head: Optional[ListNode]) -> bool:
Copy link
Contributor

Choose a reason for hiding this comment

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

와 주석보면서 알고리즘을 읽어보니 정말 술술 읽히네요..! 따로 검색해서 어떤 알고리즘인지 안찾아봐도 될 것 같습니다.

좋은습관 배워 갑니다! 감사합니다


class Solution:
def hasCycle(self, head: Optional[ListNode]) -> bool:
# 플로이드 토끼와 거북이 알고리즘
Copy link
Contributor

Choose a reason for hiding this comment

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

주석 설명이 기가막히네요;
일반적으로 플로이드 알고리즘 검색하면 너무 수학적이여서 난해했는데
토끼와 거북이에 비교하셔서 간단하게 설명하니 확실히 체감되었습니다.
문제 풀이 또한 정석적으로 진행해주셔서 너무 깔끔하네요!

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.

9주차 문제 풀이 고생 많으셨습니다!
풀이하신 문제에 대해 너무 깔끔해서 피드백 드리기가 무안할 정도네요;
10주차 문제풀이도 멋진 설명 및 풀이 기대하고 있겠습니다!

@river20s river20s merged commit 7356c37 into DaleStudy:main May 31, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Solving to Completed in 리트코드 스터디 4기 May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants