Merged
Conversation
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.
🧷 문제 링크
B형 문제라 못 올림
🧭 풀이 시간
120분
👀 체감 난이도
✏️ 문제 설명
영화는 ID, 장르, 총점을 가짐.
영화는 추가 삭제 수정이 가능해야함.
사용자는 영화를 보고 점수를 매길 수 있음. 이러면 사용자가 매긴 점수가 영화에 반영되고 사용자의 시청목록에 저장됨.
추천을 할 수 있는데, 추천은 사용자가 최근 시청한 5개의 영화에 대해 가장 높은 점수를 가진 영화와 같은 장르의 영화를 추천함. 이때 점수가 동일하다면 더 최근 영화를 추천함. 또한, 영화는 사용자가 시청한 영화는 추천해서는 안됨.
영화를 삭제하게 되면 사용자 시청 목록에서도 제거되어야 하고 사용자에게 추천되어서는 안됨.
🔍 풀이 방법
자료구조, 구현
Map을 덕지덕지 만들고 복합키로 Comparable 오버라이딩해서 안꼬이게 잘 구현하는 것이 핵심이었던 것 같다.
⏳ 회고
너무 어렵다. B형은 혁준이만의 것임을 다시금 깨닫는다.