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.
한번 경우의 수를 도입하면 뭔가 3중 for문을 안써도 되지 않을까 고민을 많이 해봤는데.
응용이 안되네요.. 다른 방법이 있을지 없을지 해봤는지 형님이 말한 동적계획법이라는 것도 아직 와닿는게 없는 것 같습니다.
많이 풀어보는게 형 말대로 답인것 같습니다.