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

Google SDE Intern OA面经

全局:

2021(10-12月) 码农类General 本科 实习@google - 网上海投 - 在线笔试  | 😐 Neutral 😐 Average | WaitList | 应届毕业生

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

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

x
两部分,第一部分是15分钟的survey,第二部分是包含两道题的90分钟的coding。直接上图。

////////////////////////////////////////////////////////You have 10 rods numbered from 0 to 9. There are three types of rings—red, green and blue—being put on the rods. You get a point for each rod that has a ring of each color on it, i.e. to get a point you need a red ring, green ring and blue ring on one rod.
A ring put on a rod is represented by two characters—the first describes the color of the ring and the second describes which number rod it is on from 0 to 9. For example "R8" means that a red ring is being put on the 8th rod.

Write a function:
class Solution { public int solution(String S); }

that, given a correct string of length 2N describing the N rings put onto rods, returns how many points you will get.

Examples:
F
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
;kk", and their lengths are both equal to 2.
Given A = ["do", "go", "ok"], the function should return 0, since no palindrome can be created from A.

Write an efficient algorithm for the following assumptions:
N is an integer within the range [1, 100,000].
Each string in A consists of two English lowercase letters.
////////////////////////////////////////////////////////

希望能帮到大家



















评分

参与人数 4大米 +18 收起 理由
Queenie_盛 + 1 给你点个赞!
SiriusLDOX + 1 赞一个
匿名用户-VF4CK + 15
Yuqing123 + 1 很有用的信息!

查看全部评分


上一篇:Aptiv summer intern 面经
下一篇:Amazon OA
全局:
请问sde Intern的oa换题了吗,之前地里的面经好像不是这两题
回复

使用道具 举报

🔗
Yuqing123 2021-12-2 06:06:19 | 只看该作者
全局:
加米啦请问楼主是啥时候写的呀,有后续消息了嘛?
回复

使用道具 举报

🔗
Abcgoogle 2021-12-4 11:38:18 | 只看该作者
全局:
木瓜大哥 发表于 2021-12-2 14:49
请问sde Intern的oa换题了吗,之前地里的面经好像不是这两题

请问最近的常见题是哪些呀?
回复

使用道具 举报

🔗
Duke杜 2021-12-16 01:00:33 | 只看该作者
全局:
回复

使用道具 举报

🔗
宋宇航11 2021-12-30 08:17:14 | 只看该作者
全局:
LZ请问第二题用什么方法写的。。
回复

使用道具 举报

🔗
chenlyuzhao 2021-12-30 12:04:08 | 只看该作者
全局:
宋宇航11 发表于 2021-12-29 19:17
LZ请问第二题用什么方法写的。。

第二题应该可以dfs解出来吧
回复

使用道具 举报

🔗
LordTachanka 2022-1-14 11:51:25 | 只看该作者
全局:
本帖最后由 LordTachanka 于 2022-1-13 23:35 编辑

LZ这是本科的2022 SWE summer intern吗?为什么和别人的两道题都不一样啊??看到大部分都说是另外两道题,看着LZ不一样突然怕怕。难道地里那两道题只是masters swe intern?本科的OA题其实不一样?
回复

使用道具 举报

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

本版积分规则

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