Available question text
Given arrays nums and per-unit costs, choose a target value t to minimize the total cost sum(cost[i] * |nums[i] - t|); this is a convex piecewise-linear objective whose optimum is the weighted median of nums (can be found via sorting and accumulating costs).
Related questions
Continue with questions that share topics or the same question type.
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
No company association
Leetcode 2448. Minimum Cost to Make Array Equal
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source