Bloomberg 店面

Want to fly participates to ny and sf offices. each office can only accomodate half. goal is to assign each participate to an office in a way that the total travel cost for the company is minimized. each participant is represented as pair of costs <costofNYFlight, costofSFFlight>. determine the min cost given a list of participants.
Sample input:
<500,600><600,400><200,900><700,300>
output:
1400 (200+500+400+300)

给你一堆人从纽约飞各个地方开会的 cost
比如
A 去 城市SF, LA的 cost 分别是 200, 300
B 去城市SF, LA的 cost 分别是 200, 400
C 去城市SF, LA的 cost 分别是 100, 400
D 去城市SF, LA的 cost 分别是 320, 210
然后保证一半的人去 SF,一半的人去 LA
使得总的 cost 最小

我是海投的。

因为不是nyc local 电面两轮

第一面两道题 一道reverse list 一道group anagram

二面也是两道题 一道类似top k用heap就行 第二道longest substring without repeating char

面下来感觉bb家算法真的不难

但是之前投的组没有hc了

把我转到另外一个组

看了下做的东西不太喜欢

而且又在nyc

不打算去onsite了。。

请问投的是2020 new grad吗

不对,我是社招,你不看tag吗