最近刚刚做完 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 anew 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 oflists 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 無痕代寫服務,全程穩妥幫你搞定,確保在規定時間內順利通過。 迷茫的時候,找對幫手,反而能少走彎路,更快拿到面試機會。