[20250915] PGM / LV2 / 과제 진행하기 / 김수연 #899
Merged
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.
🧷 문제 링크
https://school.programmers.co.kr/learn/courses/30/lessons/176962
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
과제는 시작하기로 한 시각이 되면 시작함
진행중이던 과제를 끝냈을 때, 잠시 멈춘 과제가 있다면, 멈춰둔 과제를 이어서 진행함
멈춰둔 과제가 여러 개일 경우, 가장 최근에 멈춘 과제부터 시작
과제를 끝내는 순서대로 이름을 배열에 담아 return
🔍 풀이 방법
열심히 구현함
Work라는 class 만들어주고, 조건에 맞게 정렬
이후, 시작시간과 끝나는 시간 비교해서 남은 시간 계속 업데이트 해주면서 while문 돌리기
⏳ 회고
열심히 구현하면 됐다