Skip to content

Conversation

@doh6077
Copy link
Contributor

@doh6077 doh6077 commented Nov 25, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@doh6077 doh6077 moved this from Solving to In Review in 리트코드 스터디 6기 Nov 29, 2025
@ZetBe ZetBe self-requested a review November 29, 2025 12:08
@ZetBe
Copy link
Contributor

ZetBe commented Nov 29, 2025

엇 안녕하세요 잠시 깜빡하느라 리뷰하지 못해서 빠르게 리뷰 해드리겠습니다!

Copy link
Contributor

@ZetBe ZetBe left a comment

Choose a reason for hiding this comment

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

미흡하지만, 제 리뷰가 조금이나마 도움이 되기를 바랍니다

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

Choose a reason for hiding this comment

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

onetwo로 각각 나눠서 확인한 후, 값들을 누적시키는군요

개인적으로 이 코드를 봤을 때, cur값이 제대로 작동하나 싶었는데, 애초에 중간에 두 조건이 충족하지 않으면 그냥 decode가 안되는 것이네요
공간 복잡도를 개선하는 것이 인상깊습니다

Copy link
Contributor

Choose a reason for hiding this comment

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

간결하게 for문으로 나아가며

  • 현재 값이 0보다 작으면 초기화하고
  • 아니면 계속 더하는 방식이네요

저는 되게 복잡하게 생각해서 풀이가 이상한데, 잘 작성하셨다 생각합니다

Copy link
Contributor

Choose a reason for hiding this comment

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

비트 연산자인 &를 사용하셨네요!

나중에 코테에서 비트와 관련한 문제가 나오면 사용해봐야겠습니다
저는 일일히 for문 돌려가며 작성했거든요...

Copy link
Contributor

Choose a reason for hiding this comment

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

re를 import하면 정규식으로 작성하여 주어진 문자열을 수정할 수 있군요

re도 배워갑니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

안녕하세요! 리뷰 남겨주셔서 감사합니다 ㅎㅎ

@ZetBe ZetBe self-requested a review November 29, 2025 12:54
@TonyKim9401 TonyKim9401 merged commit efa218f into DaleStudy:main Dec 1, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 6기 Dec 1, 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