MediumApplyDSA Coding PatternsMultiple Choice
What data structure for 'find median in a stream'?
Apply — Tests ability to use knowledge in practical scenarios.
Answer Options
AArray
BBST
CTwo Heaps
DHash Map
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 13+ more DSA Coding Patterns questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the DSA Coding Patterns topic (Algorithms).
More DSA Coding Patterns Questions
What is the time complexity of binary search?
EasyWhat pattern would you use for 'find the longest substring without repeating characters'?
Medium-EasyWhat pattern for 'next greater element' problems?
Medium-EasyWhen should you use BFS over DFS?
MediumWhat is the time complexity of Union-Find with path compression and union by rank?
Medium