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.
33 퇴사
DP 개념을 잘 활용한 문제였던 것 같습니다. 책에 나와있는 Testcase가 4개나 되서 잘 풀은 줄 알았는데 백준에 돌려보니 IndexError가 뜨네요 ;;;
일단 4개 Testcase 가 잘 되서 올리는데, 다시 한번 풀어보겠습니다.
34 병사 배치하기
어떻게 풀지 전혀 모르겠어서 인터넷 검색 후에 LIS라는 알고리즘을 알게되었습니다. DP 문제를 LIS를 활용해 풀 수 있다고 하네요. 처음 들어본 알고리즘인데 수열 정렬 같은 문제에서 쓸 수 있지 않을까 싶었습니다.