[shinsj4653] Week 08 Solutions#1506
Merged
shinsj4653 merged 3 commits intoDaleStudy:mainfrom May 24, 2025
Merged
Conversation
river20s
approved these changes
May 24, 2025
Contributor
river20s
left a comment
There was a problem hiding this comment.
8주차 문제 풀이도 수고 많으셨습니다! 5문제에 대한 해답 모두 잘 작성되어 있어서, 남긴 코멘트 외에 제가 드릴 피드백은 더 없을 것 같습니다. 시도하셨던 풀이들을 함께 남겨주셔서 저도 그 흐름을 따라갈 수 있어서 좋았습니다. 남은 스터디 기간도 파이팅입니다! 😄
| else: | ||
| dp[(start, end)] = dp[(start + 1, end - 1)] and s[start] == s[end] | ||
|
|
||
| return list(dp.values()).count(True) |
Contributor
There was a problem hiding this comment.
dp의 값을 가져와 리스트로 변환하는 방법외에 단순하게 count 변수 하나를 for 루프 위에 두고 dp[(start, end)] = True가 될 때마다 1씩 증가시키면 메모리나 시간을 절약해 볼 수 있을 것 같기도 합니다!
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 하나 이상을 반드시 검토를 해주셔야 합니다!