Skip to content

Conversation

seungriyou
Copy link
Contributor

@seungriyou seungriyou commented Apr 6, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@b41-41 b41-41 self-requested a review April 6, 2025 12:32
@seungriyou seungriyou moved this from Solving to In Review in 리트코드 스터디 4기 Apr 10, 2025
Copy link
Contributor

@b41-41 b41-41 left a comment

Choose a reason for hiding this comment

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

풀이 설명이나 코드 작성 하실 때
구현 → 개선 → 다른 방법 순서로 정리 해주셔서, 마치 해답지를 보는 느낌으로 이해가 잘 되었습니다!
그 덕분에 문제 접근 방식뿐만 아니라 다양한 풀이 아이디어까지 함께 배울 수 있었습니다. 감사합니다!


[Approach]
two sum 문제에서 고정된 하나의 값만 추가해서 풀 수 있다.
정렬을 한 차례하면, duplicated triplet 처리가 가능하다.
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 Author

Choose a reason for hiding this comment

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

감사합니다~! 😆

- TC: O(n)
- SC: O(1)

[Approach]
Copy link
Contributor

Choose a reason for hiding this comment

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

풀이도 설명도 깔끔해서 너무 좋았습니다!

if v != 0:
return False

return True
Copy link
Contributor

Choose a reason for hiding this comment

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

정렬 → 카운터 → 수동으로 카운트 하는 방식으로 최적화되는 코드를 보여주셔서
보기 편하고 이해가 잘 되는 좋은 코드였습니다!

@seungriyou seungriyou merged commit 48f60a2 into DaleStudy:main Apr 12, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 4기 Apr 12, 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.

2 participants