What is the goal of Median Finder?

Practice this question from Median Finder - Two Heaps Pattern Practice Quiz, with options and an explanation.

Question

What is the goal of Median Finder?

Option A — Correct answer

Support adding numbers and finding the current median.

Option B

Sort characters in a string only

Option C

Run DFS on a binary tree only

Option D

Reverse an array with two pointers only

Explanation

Support adding numbers and finding the current median.

Median Finder - Two Heaps Pattern Practice Quiz

All questions · Next question

Open on QuizMaker