Available question text
Given an array of frequencies where freq[i] is the count of value i (counts may be large), compute the median of the implicit multiset without expanding it; handle odd vs even total counts and return the middle value (or average of two middle values) efficiently using prefix sums or binary search on cumulative counts.
Related questions
Continue with questions that share topics or the same question type.
- Find All Lonely Numbers in the Array
Coding · Array · Counting · Hash Table
- Find All Numbers Disappeared in an Array
Coding
- Find All Possible Recipes from Given Supplies
Coding · Array · Directed Acyclic Graph · Graph Theory
- Find Array Given Subset Sums
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Amazon
Leetcode 571. Find Median Given Frequency of Numbers
Reported Nov 9, 2024 · 1 source report
JUNIOR
Source snapshot: Nov 12, 2026
View source