Skip to content

Design Twitter

A Medium coding interview problem in the Heap / Priority Queue pattern.

Pattern

Heap / Priority Queue

Always pull the current best element in log time.

Recognition cue: Top K, K closest, running median, or repeatedly taking the smallest / largest.

Learn first
Do not confuse it with

Topics

  • Hash Table
  • Linked List
  • Design
  • Heap (Priority Queue)
  1. 1Medium
  2. 2Medium
  3. 3Medium
  4. 4Medium
  5. 5Medium
  6. 6Medium
  7. 7Medium
  8. 8Medium