Bloomberg logoBloomberg
Coding·60 minMembers

Minimum Cost Flight Split

Members only

Schedule exactly half of `n` people to fly to San Francisco and the rest to New York, minimizing total travel cost. The follow-up changes the split to `k` people for one city and may require implement...

SWE
greedy
sorting
array
medium
Frequency
Low
Last asked
2026-06-04
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...