Đang mở hậu trường...
Chọn đáp án để xem tỉ lệ cộng đồng và giải thích. Câu hỏi được chọn tự động — mọi người cùng làm 1 câu mỗi ngày.
You are designing a leaderboard feature that processes a continuous stream of millions of player scores in real time. The system only needs to display the top 100 highest scores at any given moment and must operate with strictly minimal memory usage ($O(k)$ auxiliary space where $k = 100$). Which data structure and strategy best satisfies these constraints?