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

蕉厂NG full-time VO 大汇总

全局:

2022(1-3月) 码农类General 硕士 全职@amazon - 网上海投 - Onsite 视频面试  | 😃 Positive 😐 Average | Pass | 应届毕业生

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

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

x
也是搬运汇总的,5月份拿到的full time offer,题目有的比较久远了,有选择的看吧!

1.       
2.       
3.        Leetcode 56
4.        立扣 387
给你一个string consisting of lowercase English letter only, return the index of first non- repeating character in it. If it does not exist, return -1.
       Example: s = "abccccc".  Output: 0
1.        Find Lowest Price
2.        N门考试,每科要A题做对才过,每科已经做对B题,问如果再做对K题,最多能通过多少考试
3.        给你一个String consisting of lowercase English letter only, return the index of first non-repeating character in it. If it does not exist, return -1.
Example: S = “abccccc”.  Output: 0
4.        立扣 妖肆玖二pth Factor of n
Given n and p, consider a list of all factors of n sorted in ascending order, return pth factor in this list or return -1 if n has less than k factors.
       Example:n = 7, p = 2
       Output: 7
       Explanation: Factor list is [1,7], the 2nd factor is 7.
5.        Leetcode 387 56 696
6.       
7.       
8.       
9.        count Maximum Teams

10.        valid String

11.        find Password Strength
dp: number of distinct letters for all substring end at i
lastIndex: last index for each letter before position i
dp = dp[i - 1] + i - lastIndex[password]
相关链接:
string密码强度表示为sum of distinct characters of all its substrings
样例:
"good" = 16 (g, o, o, d, go, oo, od, goo, ood, good)
long findPasswordStrength(string password) {}
12.        例如 give array [1,2,3] 所有sub array 最大值最小值相加的求解
[1] max 1 min 1  max - min = 0
[2] max 2 min 2  max - min = 0
[3] max 3 min 3  max - min = 0
[1,2] max 2 min 1  max - min = 1
[2,3] max 3 min 2  max - min = 1
[1,2,3] max 3 min 1  max - min = 2
把所有差加起來是 0 + 0 + 0 + 1 + 1 + 2 = 6
13.        第一題: linked list 利口題 忘了哪題         第一個element + 最後element
第二個element + 倒數第二element         
              ...
             比較大小return 最大的,解法把後半LL reverse
14.        Leetcode 2104
15.        字符串里包含(,),【,】和?,求有几种分割方式能使两个子字符串都是balanced string, balanced string 是指两种括号的开和关数量相等,问号可以充当任意括号
16.        Given max. travel distance and forward and backward route list, return pair of ids of forward and backward routes that optimally utilized the max travel distance.
eg: max travel distance is : 11000
             forward route list : [1,3000],[2,5000],[3,4000],[4,10000]
backward route list : [1,2000],[2,3000],[3,4000]
17.        雨淋音乐,给了list: 歌曲长度和int 路程时间。需要找2首歌加起来= 路程时间-30mins。简单的两数之和。
list不是有序的
同一首歌不能重复选
存在所有歌都是一样长度
如果多种方案要选包括最长单曲的;以及如果多首歌相同长度,要选index最小的
18.        BFS雨淋生鲜配送,计算最短路径。
19.        sy
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
a certain building location can only provide Internet
to the buildings in the range (i - routerRange, i+ routerRange). A building is considered to be served if the number of routers providing Internet to the building is greater than or equal to the number of people living in it. Given a list of the number of people living in each building, the locations of the buildings where the routers will be installed and each router's range, find the number of served buildings in the city.
Example
buildingCount = [1, 2, 1, 2, 2]
routerLocation = [3, 1]
routerRange = [1, 2]
There are 5 buildings with tenant counts shown in buildingCount. Routers are located in buildings 3 and 1 with ranges 1 and 2 as shown in routerLocation and routerRange.
The number of routers providing Internet to building 1 is 1, which is equal to the number of people living here, so building 1 is served.
The number of routers providing Internet to building 2 is 2, which is equal to the number of people living here, so building 2 is served.
The number of routers providing Internet to building 3 is 2, which is greater than the number of people living here, so building 3 is served.
Building 4 only has coverage from 1 router, which is less than the number of people living there. The building is unserved.
Building 5 has no router coverage, so building 5 is unserved.
The 3 served buildings are 1, 2, and 3. Return 3.
23.       
24.       
25.       
26.       

评分

参与人数 8大米 +22 收起 理由
cks2009899 + 1 给你点个赞!
匿名用户-KIGNV + 15
Fjames + 1 给你点个赞!
风纪委员 + 1 赞一个
redbeanCC + 1 给你点个赞!

查看全部评分


上一篇:亚麻ng oa貌似新题
下一篇:亚麻sde1 vo
🔗
caseycai95 2022-8-8 00:53:42 | 只看该作者
全局:
这是oa还是vo啊
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-Z4TKB  2022-8-12 12:56:41
感觉有一部分是OA
回复

使用道具 举报

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

本版积分规则

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