我这次的 Yahoo OA 是通过 CodeSignal 完成的,总时长 90 分钟,包含 4 道编程题 + 几道简单的逻辑/数学小题。整体感觉题型比较贴近数据处理、字符串处理和基本算法,不算很偏门,但时间分配是关键。
开始前系统会给一个简单的环境测试页面,可以提前熟悉 IDE 界面、输入输出格式。正式计时后,题目直接按难度递增排列,前两题比较送分,后面两题需要稍微多想一步。

真题示例
1. String Compression
Given a string, compress it by replacing consecutive repeating characters with the character followed by the number of repetitions.
Example: "aaabbc" → "a3b2c1"
2. Rotate 2D Matrix
Given an n x n matrix, rotate it 90 degrees clockwise in place.
Example:
[[1,2,3],
[4,5,6],
[7,8,9]]
[[7,4,1],
[8,5,2],
[9,6,3]]
3. Valid Parentheses with Wildcard
Given a string containing (, ), and *, determine if it could be a valid parentheses string.
* can be treated as ( or ) or an empty string.
4. Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. You can only move right or down.
经验总结
- 前两题多是送分题,尽量 10 分钟内搞定。
- 第三题要注意
*的多重可能性,常用 区间贪心 解决。 - 第四题是典型动态规划,处理好边界就不会出错。
- CodeSignal 的 hidden case 覆盖很全面,所以要特别考虑空输入、全零矩阵、单行单列等边界场景。
Programhelp 助你稳过 OA
Programhelp 团队由 7 位毕业于顶尖 IT 院校的学长组成(Oxford、Princeton、北大等),成员均有 Amazon、Google、阿里等一线大厂经验。
我们提供:
- 真题还原与讲解
- 无痕远程联机协作
- 实时语音提醒 + Debug 指导
不管是 Yahoo 还是其他大厂 OA/VO,我们都有成熟的全流程助攻方案,帮你在计时压力下依然稳住发挥。
📍 更多信息可访问:programhelp.net