📣 黑五网一特惠|VIP一年通行证5折,蓝莓、Offer多多同步特惠
回复: 3
跳转到指定楼层
上一主题 下一主题
收起左侧

Stripe L3 OA

全局:

2026(7-9月) 码农类General 本科 全职@stripe - 内推 - 在线笔试  | 😃 Positive 😐 Average | Fail | 在职跳槽

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
你需要为一家全球分布式云服务商构建一个简化的请求路由系统。该系统必须负责管理数据中心的注册、监控其健康状态、计算地理距离,并根据地理邻近度和容量将用户请求路由至最佳的健康数据中心。

你需要处理一系列按时间顺序排列的指令,并返回相应的响应列表。

Input Commands

1. REGISTER <name> <latitude> <longitude> <capacity>
Registers a new datacenter.Validation Rules:latitude must be between -90 and 90 (inclusive).longitude must be between -180 and 180 (inclusive).capacity must be strictly greater than 0.name must be globally unique.

Initial State: A newly registered datacenter starts with load = 0 and healthy = true.Output: Return "OK" if registration is successful, or "ERROR" if any validation rule fails.

2. SET_HEALTHY <name> <true/false>Updates the health status of an existing datacen
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
ers exist): None <CommaSeparatedListOfAllHealthyNodeNames>(Note: If there are zero healthy nodes, the output is simply "NONE").

总共有 20 个测试用例,每一部分各包含其中几个。尽管我之前在论坛上见过这道题,结果第二部分还是搞砸了。真是太崩溃了。

请给我一些米饭。

评分

参与人数 4大米 +9 收起 理由
沃洛德施主 + 2 很有用的信息!
ShirleyWPIN + 1 谢谢分享!
GravityPHy + 1 很有用的信息!
匿名用户-O9WVP + 5 感谢分享!

查看全部评分


上一篇:真诚求人类学 ML System Design 面经
下一篇:巨硬 OA 挂
推荐
fruxzak 2026-8-26 01:11:40 | 只看该作者
全局:
匿名用户 发表于 2026-08-11 12:26:36
thanks!! but how could we possibly know the haversine formula during the OA lol
The formula is given in the interview prompt
回复

使用道具 举报

地里匿名用户
推荐
匿名用户-H9YRF  2026-8-27 08:49:21
for the 3 Route command, it should be us-west not None
回复

使用道具 举报

地里匿名用户
推荐
匿名用户-66GNH  2026-8-12 03:26:36 来自APP
thanks!! but how could we possibly know the haversine formula during the OA lol
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表