注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
楼主最近接到了C1 general position的OA,看了看地里相关的面经,把2025年相关的总结了一下。
OA基本都是70min做四题
因为前面两道题都是LC easy的难度,基本都是遍历字符串和数组的常规操作(顶多sort一下),这里就不一一列举了,常见的有- Toggle Case of String, 给定字符串, 翻转大小写
- array/string的操作
重点是第3,4题, 一般都是medium和hard的难度 (不知道为什么C1特别喜欢考simulation的题, 什么给定一系列操作,问最后形态。拿了onsite得去问问面试官!)
地里有说前两道pass就能过的,也有说得三道,感觉是看experience,experience越少,pass就得越多
感觉很多人都不能full pass第三题,常常是做了第四题,再回来搞第三题。对了,他们家的OA题目听说都巨长,都是小作文
因为都是整理地里的,所以附上了原po,大家可以去原po多多点赞加米!!!如果没有原po,就是Google来的 :P
2025.7-9
第三题- LC 56/LC 71/LC1861/LC210/LC 723/LC 2043
- 给定按到达时间的样品序列,单机处理每份样品固定X秒,机器忙时样品入容量为Y的FIFO冷冻柜、满则丢弃,返回最后一份被接收样品的完成时间。
- 给定一个二维矩阵 moistureGrid 表示土壤湿度,以及一个整数 smoothingRadius。 the number of such pairs i,j that words[i] is a suffix of words[j], or words[j] is a suffix of words[i]
- An array of slots is given which are all initially uncolored. n queries [x,y] will be given where x = position, y = color. Each query means to paint slot at x position with color y. For each query find out how many consecutive slot pairs share the same color.
Eg: [0,0,0,0,0,0]
Queries: [[1,2],[2,2],[0,3],[3,2],[1,1]]
Ans: [0, 1, 1, 2, 0]
整理不易,希望大家多多点赞和加米!!!祝大家offer多多,幸福多多!!!
|