回复: 5
跳转到指定楼层
上一主题 下一主题
收起左侧

Amazon sde intern 2025 OA 求米!

全局:

2025(1-3月) 码农类General 本科 实习@Amazon - 网上海投 - 在线笔试  | 😐 Neutral 😐 Average | Other | 其他

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

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

x

之前发的好像图片附加不进去,重新发一个新的,求加米!
一共两题
第一题有点复杂,edge cases较多
第二题比较简单
work style就跟网上和地里的看到的差不多,youtube上看到一个博主,可以跟着视频一起做一下,锻炼一下自己的思维:

1. Code Question 1

Amazon developers are building a prototype for a regex generator for the given strings. For the prototype version, the regex consists of uppercase English letters, '[' and ']'. Here, a string of characters enclosed in square brackets '[' and ']' matches any of the characters in that string. Also, the string of characters enclosed within '[' and ']' consists of uppercase English letters only with no repetition.
For example:
  • "[ABBR]ABC" is not a valid regex as B occurs twice between square brackets.
  • "[ABC", "A[A[", "]" and "]ABC" are also not valid regexes as brackets must contain some string, and brackets should also form a balanced bracket sequence.
  • "[ABC][BCA]" is a valid regex and matches with "BBCA" and "ABCA", but not with "ABBCA".
  • "
    您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    使用VIP即刻解锁阅读权限或查看其他获取积分的方式
    游客,您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    VIP即刻解锁阅读权限 或 查看其他获取积分的方式
    Unlock interview details and practice with AI
    Popular Interview Questions from Top Companies
    2. Code Question 2

    Data analysts at Amazon are analyzing time-series data. It was concluded that the data of the n^th item was dependent on the data of some x^th day if there is a positive integer k such that floor(n / k) = x, where floor(z) represents the largest integer less than or equal to z.
    Given n, find the sum of all the days' numbers on which the data of the x^th (0 ≤ x ≤ n) will be dependent.

评分

参与人数 6大米 +15 收起 理由
没羊角的小眠羊 + 1 给你点个赞!
瓜桢 + 1 给你点个赞!
快乐成长 + 1 欢迎分享你知道的情况,会给更多积分奖励!
HOI3CHI + 1 欢迎分享你知道的情况,会给更多积分奖励!
匿名用户-J1G5K + 10 欢迎分享你知道的情况,会给更多大米奖励!

查看全部评分


上一篇:亚马逊一面
下一篇:2025 Amazon sde intern oa
全局:
请问楼主第一题有哪些edge cases要考虑?大概是什么思路呢
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-8WCKU  2024-12-16 05:22:00
想请问收到VO邀请了吗?
回复

使用道具 举报

🔗
 楼主| KGsxj 2024-12-16 11:36:12 | 只看该作者
全局:
匿名用户 发表于 2024-12-15 16:22
想请问收到VO邀请了吗?

目前还没有,距离OA刚好一周
回复

使用道具 举报

🔗
 楼主| KGsxj 2024-12-24 05:49:05 | 只看该作者
全局:
KGsxj 发表于 2024-12-15 22:36
目前还没有,距离OA刚好一周

楼主刚收到VO邮件
回复

使用道具 举报

🔗
Morol 2024-12-29 13:14:58 | 只看该作者
全局:
不错呀!这个必须给一个赞!太强了。。。。。。
回复

使用道具 举报

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

本版积分规则

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