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

Google 2026 Summer Intern 两轮vo 挂经

全局:

2026(1-3月) 码农类General 硕士 实习@google - 网上海投 - 技术电面  | 😃 Positive 😐 Average | Fail | 应届毕业生

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

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

x
本帖最后由 zoila_barros 于 2026-2-1 16:06 编辑 <
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
一轮坏会加面吗,连加面都没。。。。难受
  1. """
  2. Problem:
  3. You are given an integer array nums (values may repeat, may be negative).

  4. You are allowed to remove EXACTLY one element from nums (remove one index).
  5. After removal, the array becomes shorter and keeps the relative order of the remaining elements.

  6. Task:
  7. Return True if there exists a way to remove exactly one element such that
  8. the remaining array has at least one pivot index. Otherwise return False.

  9. Examples:
  10. - nums = [2, 1, 3, 1, 2]
  11.   remove the middle 3 -> [2,1,1,2], pivot p=1 (left sum=2, right sum=1+2=3) no
  12.   but remove 1 at index 1 -> [2,3,1,2], pivot p=1: left=2 right=1+2=3 no
  13.   (example just shows format; not necessarily True)
  14. """
复制代码

评分

参与人数 8大米 +13 收起 理由
zzszy + 1 很有用的信息!
easymoney + 1 很有用的信息!
会计狗 + 1 给你点个赞!
sqz0914 + 2 很有用的信息!
Atyrau + 1 赞一个

查看全部评分


上一篇:MS VO Hiring Event 面经 / 挂经
下一篇:刀大师电面
推荐
 楼主| zoila_barros 2026-2-3 00:17:47 来自APP | 只看该作者
全局:
匿名用户 发表于 2026-02-01 19:30:51
11月以前挺多加面的,后面应该是bar变高了
很可能,反正move on了,差点运气,希望我们都能好运
回复

使用道具 举报

推荐
wonin 2026-2-2 00:59:21 | 只看该作者
全局:
第二题看上去是prefixsum
回复

使用道具 举报

🔗
 楼主| zoila_barros 2026-2-1 21:08:51 | 只看该作者
全局:
  1. """
  2. Problem:
  3. You are given an integer array nums (values may repeat and may be negative).

  4. You must remove EXACTLY one element (remove one index i).
  5. After removing nums[i], the relative order of the remaining elements stays the same.

  6. Task:
  7. Return True if there exists an index i such that after removing nums[i],
  8. the sum of elements to the left of i equals the sum of elements to the right of i:

  9.     sum(nums[0 : i]) == sum(nums[i+1 : n])

  10. Otherwise, return False.

  11. Notes:
  12. - You are checking the balance around the removed element's original position.
  13. - n can be small or large; aim for O(n) time.

  14. Example:
  15. nums = [2, 1, 3, 1, 2]
  16. Remove nums[2] = 3:
  17. left sum = 2 + 1 = 3
  18. right sum = 1 + 2 = 3
  19. => True
  20. """
复制代码
不好意思,第二题有误,我更新了,我检查疏忽了,这道题居然是用数学公式推导,真没想出来。祝大家好运了!
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-XVLZ9  2026-2-2 02:56:09
请问vo完多久出的结果啊
回复

使用道具 举报

🔗
 楼主| zoila_barros 2026-2-2 06:26:48 来自APP | 只看该作者
全局:
匿名用户 发表于 2026-02-01 10:56:09
请问vo完多久出的结果啊
大概七天左右

评分

参与人数 1大米 +1 收起 理由
满头银发的炒粉 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

地里匿名用户
🔗
匿名用户-0GZPR  2026-2-2 11:30:51
11月以前挺多加面的,后面应该是bar变高了
回复

使用道具 举报

🔗
 楼主| zoila_barros 2026-2-3 10:45:29 来自APP | 只看该作者
全局:
wonin 发表于 2026-02-01 08:59:21
第二题看上去是prefixsum
是的我一开始就说了,但是做错了方向,他没拉我一下。 Move on了面试太看人品。
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-I2VZR  2026-8-25 18:25:24
感觉general case最佳解O(n^2) 如果non-negative的话可以O(n)?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-I2VZR  2026-8-25 18:30:45
匿名用户 发表于 2026-08-25 03:25:24
感觉general case最佳解O(n^2) 如果non-negative的话可以O(n)?
nvm 這是另外一提的簡化版, O(n) for this prefix sum
回复

使用道具 举报

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

本版积分规则

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