NeetCode #534LC-355MediumHeap / Priority QueueNC 150NC 250
← Back to All Problems#534 · #355 · Design Twitter(设计推特)
📌 Problem Statement & Constraints
Design a simplified Twitter with
postTweet, getNewsFeed (the 10 most recent tweets from the user and their followees), follow and unfollow. Constraints: 1 <= userId, tweetId <= 10^4; at most 3 * 10^4 calls.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!