LinkedInCoding·55 minMembers
Minimum Sum-of-Distances Meeting Point on a Line
Members only
Given a 1-D array of points, find the point that minimizes the sum of absolute distances to every other point. The answer is the median; the interview signal is the proof, not the code. Follow-ups ext...
MLE
SWE
RS
math
quickselect
sorting
math-reasoning
medium
Frequency
Medium
Last asked
2026-02-17
Stage
phone-screen · onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
