注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
// Two dashers (who happen to be best buds) can complete up to n possible ordered pickups on a certain day. These pickups are represented by two arrays of length n, one for each dasher. A pickup is represented by the name of the merchant, for example “chilis” or “albertsons.”
// We could have the following two arrays that represent the pickup jobs for the two dashers:
// dasher1_pickups: [“chilis”, “albertsons”, “walmart”, “albertsons”, “chilis”,urger king”]
// Example 2
// dasher1_pickups: [“chilis”, “albertsons”, “mcdonalds”]
// dasher2_pickups: [“burger king”, “jamba juice”, “applebees”]
// dasher1 and dasher2 do not share any of the same pickup jobs, so they do not have any pickup jobs together.
// returns [] |