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

热乎乎的nv onsite,求加米

全局:

2024(7-9月) 码农类General 博士 全职@nvidia - 猎头 - Onsite  | 😃 Positive 😐 Average | Other | 在职跳槽

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

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

x
Write a BFS code for the number of islands. Discuss the complexity. What is the algorithm besides BFS and DFS implementation? Do you know how to write an algorithm using union and find?
If you have a string of 0s and 1s. 0 means no illegal characters, 1 means having illegal characters. The goal is to calculate the cost of removing all 1s. There are totally 3 functions: removeLeft() that costs 1, removeAny() meaning removing from anywhere that costs 2, removeRight() that costs 1. What’s the minimum cost of removing all the 1s? For example, 01100001, whose cost is 4. What’s the algorithm to do it?
The algorithm has 3 parts:
1. dynamic programming to get the cost from left/middle: min of 1) cost of the left neighbor of “1” plus 2; 2) the number of elements from leftmost to current position. 2.
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
to two I32 loads. (BTW, I didn’t answer this question properly, because I didn’t know what he’s asking for initially. But this is common sense and we used this trick before at Intel as well.)
A robot dog needs to traverse rooms in 2D. There are only 3 functions: eat() is to eat all the food in the room; turn_left() is to turn left; move() is to move in a certain direction with 1 step. Write this function in C++.

求加米。

评分

参与人数 10大米 +21 收起 理由
Fireball + 1 给你点个赞!
Melonlemoner + 1 很有用的信息!
taken + 2 欢迎分享你知道的情况,会给更多积分奖励!
umialpha + 1 欢迎分享你知道的情况,会给更多积分奖励!
hope2019 + 1 赞一个

查看全部评分


上一篇:Verkada NG OA
下一篇:数据砖店面+VO 挂经
推荐
Fireball 2025-2-2 09:20:36 | 只看该作者
全局:
第二道题大概是 利口 尔易留器?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-1OE58  2024-9-8 09:54:11
没懂第二道题,为什么01100001的cost是4?removeLeft具体是怎么remove啊?
回复

使用道具 举报

全局:
楼主面的什么role啊
回复

使用道具 举报

🔗
 楼主| linjin 2024-9-8 14:07:18 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
 楼主| linjin 2024-9-8 14:07:37 | 只看该作者
全局:

performance engineer
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-ZNRCH  2024-9-8 23:10:54
我記得 nvida 是組招,所以面試題目五花八門。
回复

使用道具 举报

🔗
 楼主| linjin 2024-9-9 01:59:12 | 只看该作者
全局:
匿名用户 发表于 2024-9-8 08:10
我記得 nvida 是組招,所以面試題目五花八門。

正是如此。现在缺米,请好心人给点米吧。
回复

使用道具 举报

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

本版积分规则

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