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

Amazon 中国 SDE OA

全局:

2025(1-3月) 码农类General 硕士 全职@字节跳动 - 内推 - 在线笔试  | Other | 在职跳槽

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

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

x

今天年前最后一天,下午事情不多直接做了一下亚麻 OA,第一题中规中矩,第二题 DP 实在是没想出来。

  • 遍历算法

For a simple load-balancing algo, there are
  1. num_servers
复制代码
servers numbered from 0 to
  1. num_servers-1
复制代码
and the initial number of requests assigned to each server is 0. In the i-th second, a request comes from IP hash of
  1. request[i]
复制代码
, and it must be assigned to the server with the minimum number of requests among the servers from 0 to
  1. request[i]
复制代码
.
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
. 1point 3 acres

  • 动态规划
. 1point 3acres

For the message queue algorithm, there are n events to be sent through a queue, and the size of the i-th event payload is
  1. payload[i]
复制代码
. The optimized list called
  1. optimizedPayload
复制代码
which satisfies the following conditions, regardless of the original order of the elements:
1. The first part of
  1. optimizedPayload
复制代码
forms an increasing sequence ..
2. The second part of
  1. optimizedPayload
复制代码
forms a decresing sequence
3. The third part of
  1. optimizedPayload
复制代码
forms an incresing sequence
您好!
本帖隐藏的内容需要积分高于 120 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 120 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies

上一篇:英硕数据分析回国找工,复盘我拿到大厂offer的全过程
下一篇:阿里面经 - Base 杭州
🔗
xyzxyzfred 2025-1-30 04:38:42 | 只看该作者
全局:
第一题我也遇到了 想用heap也超时了 查了一下好像应该用segment tree? 感觉挺难的
回复

使用道具 举报

🔗
 楼主| 衣叶衣叶 2025-1-30 11:00:17 来自APP | 只看该作者
全局:
xyzxyzfred 发表于 2025-01-29 12:38:42. Χ
第一题我也遇到了 想用heap也超时了 查了一下好像应该用segment tree? 感觉挺难的
用Segment Tree还得自己定义一个structure,太复杂了…可惜,我刚才收到了拒信,下次再战
回复

使用道具 举报

🔗
czhrabbit 2025-1-31 04:33:56 | 只看该作者
全局:
我也,tle应该过不了了吧
回复

使用道具 举报

🔗
czhrabbit 2025-1-31 04:34:46 | 只看该作者
全局:
第一题merge sort test都过了吗
回复

使用道具 举报

🔗
 楼主| 衣叶衣叶 2025-1-31 11:02:23 来自APP | 只看该作者
全局:
czhrabbit 发表于 2025-01-30 12:33:56. 1point3acres.com
我也,tle应该过不了了吧
过不了,最后一个用例tle
回复

使用道具 举报

🔗
慢慢度过 2025-1-31 11:43:54 | 只看该作者
全局:
times[0,0,0,0,0]
回复

使用道具 举报

🔗
 楼主| 衣叶衣叶 2025-1-31 11:50:15 来自APP | 只看该作者
全局:
第一题最后一个极端case大概是100000, [987567,887312,763123,...]十万个数。另一个999999,999998这样的case是能过的
回复

使用道具 举报

🔗
czhrabbit 2025-2-2 01:39:26 | 只看该作者
全局:
能讲讲但是有极限 case 超时。怎么用merge sort优化吗?
回复

使用道具 举报

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

本版积分规则

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