回复: 8
收起左侧

Google SWE - Onsite Interview

本楼:   👍  3
100%
0%
0   👎
全局:   23
100%
0%
0

2025(1-3月) 工程类 本科 全职@Google - 网上海投 - Onsite  | 😃 Positive 😐 Average | WaitList | 在职跳槽

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

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

x
First

A tree is given in the form of the parent index and value.
tree = [(-1, 'a'), (0, 'b'), (0, 'e'), (1, 'c'), (1, 'd'), (2, 'f'), (2, 'g')] 

  • Delete the node at the given index.
  • Delete the entire subtree of the node at the given index.




<
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
e, and a function that returns the probability of 2 students getting caught passing the note. Return the path with the least probability of getting caught from the start to the end.

评分

参与人数 7大米 +11 收起 理由
hyton + 1 很有用的信息!
Tukey + 1 赞一个
AvaGwen + 1 很有用的信息!
清道神君 + 5 欢迎分享你知道的情况,会给更多大米奖励!
CurtisAAA + 1 赞一个

查看全部评分


上一篇:刀大师新鲜vo
下一篇:Walmart Staff SDE
AvaGwen 2025-2-7 10:08:18 | 显示全部楼层
本楼:   👍  1
100%
0%
0   👎
全局:   33
80%
20%
8
lalaloopsy 发表于 2025-2-6 01:57
:D
please add rice if you can, I need it for an interview

added, sorry my max is 1, would ve given 100
回复

使用道具 举报

AvaGwen 2025-2-6 14:14:59 | 显示全部楼层
本楼:   👍  1
100%
0%
0   👎
全局:   33
80%
20%
8
好人一生平安1!!!
扫码关注一亩三分地求职移民公众号
更多干货内容等你发现
回复

使用道具 举报

 楼主| lalaloopsy 2025-2-6 14:57:39 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   23
100%
0%
0
AvaGwen 发表于 2025-2-6 01:14
好人一生平安1!!!

:D
please add rice if you can, I need it for an interview

评分

参与人数 2大米 +2 收起 理由
LJJ1169284415 + 1 赞一个
Planetarium + 1 赞一个

查看全部评分

回复

使用道具 举报

ppt大师 2025-2-7 17:29:15 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   609
97%
3%
19
楼主太强了,能拿这么多面试
回复

使用道具 举报

wcmr121 2025-2-14 15:08:07 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   5
100%
0%
0
请问第二题是不能用额外的数据结构么
回复

使用道具 举报

 楼主| lalaloopsy 2025-2-20 03:05:41 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   23
100%
0%
0
wcmr121 发表于 2025-2-14 02:08
请问第二题是不能用额外的数据结构么

yes, you can
回复

使用道具 举报

地里匿名用户
匿名用户-6PRJM  2025-2-21 09:44:59
本楼:   👍  0
0%
0%
0   👎
I want to ask a clarification question about the first question:

For the first subquestion, if we delete the node at the given index, how do we treat its parent and childen if it's not a leaf node?

Thanks! (already added rice)
回复

使用道具 举报

 楼主| lalaloopsy 2025-2-21 12:42:54 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   23
100%
0%
0
匿名用户 发表于 2025-2-20 20:44
I want to ask a clarification question about the first question:

For the first subquestion, if we ...

It's children go to its parent
回复

使用道具 举报

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

本版积分规则

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