21939 (1) 썸네일형 리스트형 백준 알고리즘 문제 풀이 가이드: 코딩 면접 대비 완벽 준비-21939 문제 추천 시스템 Version 1 편 (python) 문제 살펴보기!!문제 링크 : https://www.acmicpc.net/problem/21939솔루션 살펴보기!!import sysimport heapqclass ProblemManager: def __init__(self): # Dictionary to store current problems with their levels self.num_to_level = {} # Max heap: (-level, -num) self.max_heap = [] # Min heap: (level, num) self.min_heap = [] def add_problem(self, num, level): """Add a n.. 이전 1 다음