最近刚刚做完 BlackRock OA ,感觉是真的“白给”,题目难度非常友好,基本就是 LeetCode easy ~ medium 的水平。我只花了 20 分钟就全部 AC,然后愉快地交卷了。趁热来复盘一下这次的题目和解题思路,给准备 BlackRock 的同学做个参考。
BlackRock OA 测试形式
这次的 BlackRock OA 整体形式比较常规,和大家熟悉的大厂 OA 没太大区别:
- 平台:就是常见的在线 Coding 平台,界面清晰,没什么坑。
- 时长:官方给的时间大概 1 小时,但我 20 分钟就写完交了。
- 题量:一共 2 道题。
- 难度:基本就是 LeetCode easy 到 medium 的水平,稍微有点刷题基础的同学都能轻松搞定。
BlackRock OA 真题分享
Add Number Series II
Programming challenge description: Write a program that, given an integer N, sums all the whole numbers from 1 through N (both inclusive). Do not include in your sum any of the intermediate values (1 and N inclusive) that are divisible by 5 or 7.
Input: Your program should read lines from standard input. Each line contains a positive integer.
Output: For each line of input, print to standard output the sum of the integers from 1 through n, disregarding those divisible by 5 and 7. Print out each result on a new line.
Test 1 Test
Input
10
Expected Output
33
Test 2 Test Input
7
Expected Output
16
Set Intersection
Programming challenge description: Find the intersection of two sorted lists of integers.
Input: Your program should read lines of text from standard input. Each line will contain two comma separated lists of integers in ascending order, one pair of lists per line. The lists are separated by a semicolon.
Output: For each pair of input lists, print to standard output their sorted intersection in ascending order, comma separated, one intersection per line.
Test 1 Test Input
1,2,3,4;4,5,6
Expected Output
4
Test 2 Test Input
7,8,9;8,9,10,11,12
Expected Output
8,9
BlackRock Online interview 总结感受
整体来说,BlackRock 的 OA 节奏非常轻松,跟一些投行/金融公司常见的超高压数学题完全不同,更偏向于基础 coding 能力的考察。只要平时有在 LeetCode 上刷过 easy / medium 题型,这场 OA 完全可以当作“送分题”。
建议准备 BlackRock 的同学:
- 刷一刷经典数组和字符串题型就够了。
- 时间分配不用太紧张,难度比大部分科技公司 OA 要低。
- 如果目标是拿个稳稳的面试机会,这关基本没门槛。
OA 不会写怎么办?Programhelp 助你轻松过关
很多同学在准备 OA 的时候,其实不是不会写,而是容易紧张、时间分配不合理,结果明明能 AC 的题也没做完。如果你也在为 OA 卡关、写不出来而焦虑,其实完全没必要硬撑。
Programhelp 可以为你提供 OA 无痕代写服务,全程稳妥帮你搞定,确保在规定时间内顺利通过。迷茫的时候,找对帮手,反而能少走弯路,更快拿到面试机会。