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

Amazon SDE II OA题

🔗
匿名用户-O7ETE  2025-6-7 22:12:16 |倒序浏览

2025(1-3月) 码农类General 硕士 全职@amazon - 内推 - 在线笔试  | 😃 Positive 😐 Average | Other | 在职跳槽

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

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

x

Q1末朋友帮内推的亚麻,OA两道题分享下


Question 1 : Minimal cost to strengthen password
A team of developers at Amazon is working on a feature that checks the strength of a password as it is set by a user.
Analysts found that people use their personal information in passwords, which is insecure. The feature searches for the presence of a reference string as a subsequence of any permutation of the password. If any permutation contains the reference string as a subsequence, then the feature determines the minimum cost to remove characters from password so that no permutation contains the string reference as a subsequence.
The removal of any character has a cost given in an array,
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
ample
Given n = 4, size = [2, 3, 3, 2] and cost = [2, 4, 5, 1].
-- It costs 7 units to make the prices distinct.  
We can also adjust size[1] to 5, which costs cost[1] * (5 - size[1]) = 8, and size[3] to 4, which costs cost[3] * (4 - size[3]) = 2. Therefore, the total cost is 8 + 2 = 10.
However, 7 is the minimum cost required to make all sizes distinct.


做完以后一直没有response,朋友从内网帮我看这个职位已经没了,估计是被内部转岗给fill了。


整理不易,求厚米!

评分

参与人数 2大米 +16 收起 理由
匿名用户-QSUGI + 15 欢迎分享你知道的情况,会给更多大米奖励!
周云凡 + 1 给你点个赞!

查看全部评分


上一篇:amazon oa登录错账号怎么办
下一篇:Microsoft Azure SDE II 挂经
地里匿名用户
🔗
匿名用户-Z721W  2025-6-8 12:29:51 来自APP
请问有后续吗 周末收到oa感觉像是自动发的
回复

使用道具 举报

🔗
cuokao 2025-6-13 07:46:45 | 只看该作者
全局:
非常感谢
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-O7ETE  2025-6-18 13:55:17
匿名用户 发表于 2025-6-8 12:29
请问有后续吗 周末收到oa感觉像是自动发的

感觉像白嫖OA。做完一个月都没动静,系统也不更新进度。内推的朋友看这个职位在内网都没了
回复

使用道具 举报

🔗
TroyGarden 2025-7-28 02:08:33 | 只看该作者
全局:
请问楼主,第二题的输出是7 吗? 要sort吗? size 和cost 是不是一一对应的?
回复

使用道具 举报

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

本版积分规则

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