← All problems
Medium · Heap / Priority Queue

Design Twitter

Support following, unfollowing, posting and retrieving the ten newest relevant posts.

Full problem and submission ↗
main.js

Console

Ready