注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
新鮮oa
原題
Amazon has multiple delivery centers and delivery warehouses all over the world! The world is represented by a number line from -109 to 10°
. There are n delivery centers,
the ith one at location center[i]. A location x is called a suitable location for a warehouse if it is possible to bring all the products to that point by traveling a distance of no more than d. At any one time, products can be brought from one delivery center and placed at point x. Given the positions of n delivery centers, calculate the number of suita您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 864%2FAmazon-OA" rel="nofollow noopener" target="_blank">https://leetcode.com/discuss/interview-question/3949864/Amazon-OA
這題沒做出來,但今天說pass 了
希望有幫助到 |