Skip to content

[shinsj4653] Week 08 Solutions #1506

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 3 commits into from
May 24, 2025
Merged

[shinsj4653] Week 08 Solutions #1506

merged 3 commits into from
May 24, 2025

Conversation

shinsj4653
Copy link
Contributor

@shinsj4653 shinsj4653 commented May 21, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@shinsj4653 shinsj4653 moved this from Solving to In Review in 리트코드 스터디 4기 May 23, 2025
Copy link
Contributor

@river20s river20s left a comment

Choose a reason for hiding this comment

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

8주차 문제 풀이도 수고 많으셨습니다! 5문제에 대한 해답 모두 잘 작성되어 있어서, 남긴 코멘트 외에 제가 드릴 피드백은 더 없을 것 같습니다. 시도하셨던 풀이들을 함께 남겨주셔서 저도 그 흐름을 따라갈 수 있어서 좋았습니다. 남은 스터디 기간도 파이팅입니다! 😄

else:
dp[(start, end)] = dp[(start + 1, end - 1)] and s[start] == s[end]

return list(dp.values()).count(True)
Copy link
Contributor

Choose a reason for hiding this comment

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

dp의 값을 가져와 리스트로 변환하는 방법외에 단순하게 count 변수 하나를 for 루프 위에 두고 dp[(start, end)] = True가 될 때마다 1씩 증가시키면 메모리나 시간을 절약해 볼 수 있을 것 같기도 합니다!

@shinsj4653 shinsj4653 merged commit 120109b into DaleStudy:main May 24, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 4기 May 24, 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