查看: 831| 回复: 0
跳转到指定楼层
上一主题 下一主题
收起左侧

[求职简历] Cisco OA

全局:

2024(10-12月)-CS硕士+fresh grad 无实习或全职 | 网上海投|BayArea湾区 码农类General实习@Cisco

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

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

x

NG SWE intern -2024年11月
90分钟三道题,求加米!
. Waral dи,

第一道,FIZZBUZZ
When given a number N, for eachinteger i in the range from 1 to Ninclusive, print one value per line asfollows:
lf i is a multiple of both 3 and 5, print FizzBuzz.
lf i is a multiple of 3 but not 5, print Fizz.
lf i is a multiple of 5 but not 3, print Buzz.
If i is not a multiple of 3 or 5, print the value of i.
Write an algorithm which followsthe given instructions and prints therequired output.
Example
Input;
5
Output:. check 1point3acres for more.
1
2
Fizz
4
Buzz


第二道, DP
There is a set of N jars containing chocolates. Some of them may be empty, Determine the maximum number of chocolates Andrew can pick from the jars given that hecannot pick from jars next to each other.
Write an algorithm to find the maximum number of chocolatesthat can be picked from the jars insuch a way that the chocolates arenot picked from jars next to each other.. Χ
Input;
6 9 10 11 5 6 ..
Output:
26


第三道,矩阵运算
Write an algorithm which finds outthe elements which are largest in arow and smallest in a column in amatrix.
The first line of input consists of two space-separated integers-matrix row and matrix col,representing the number of rows in the matrix (N) and the number of columns in the matrix (M), respectively.
The next M lines consist of N space-separated integers representing the elements of the matrix.
Print a number which is largest in arow and smallest in a column in the given matrix.lf no element is found print '-1'
Input:
2 2
1 2
3 4
Output:
2

评分

参与人数 2大米 +2 收起 理由
hzieeff + 1 很有用的信息!
行于矩阵悟在维度 + 1 楼主/层主请继续!

查看全部评分


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

本版积分规则

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