Design Twitter (Merge K Sorted Lists Algorithm)
User 1 follows User 2 & 3. User 2 & 3 follow nobody.
Active Tweet
Added to Feed
Heap Root (Max)
User Tweets (Sorted Lists)
Max Heap (Merge Logic)
News Feed (Top 10)
當前步驟
Ready.
步驟 0 / 0
邏輯解釋
C++ Code