Merged
Conversation
njngwn
approved these changes
Aug 8, 2025
| /** | ||
| * case 1. decodeMap 에 array 의 각 index 별로 디코딩이 가능한 자릿수를 list 로 관리 | ||
| * 후에 decodeMap 을 dfs 로 순회하면서 조합이 가능한 방법을 찾는 방법 | ||
| * 그러나 Time Limit Exceeded 발생ㅠㅠ |
Contributor
There was a problem hiding this comment.
검색을 해보니까, DFS로 할 경우에, 이미 방문했던 것을 또다시 방문하면서 계산이 많아지고, 그래서 Time Limit Exceeded 문제가 발생하는 것 같습니다..! 이럴 때 메모이제이션을 사용할 수 있다고 하더라구요! https://bubble-dev.tistory.com/entry/DFS-%EB%A9%94%EB%AA%A8%EC%9D%B4%EC%A0%9C%EC%9D%B4%EC%85%98 코드가 깔끔하고 보기 좋네요! 수고하셨습니다~~
Contributor
Author
There was a problem hiding this comment.
캬 맞습니다ㅠㅠ 메모이제이션으로 해야 되더라구요ㅠ 꼼꼼한 리뷰 감사드려요 👍
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 하나 이상을 반드시 검토를 해주셔야 합니다!