今天上午剛帶一位學員剛做完 MathWorks 的最新 OA,兩道程式設計題全程只花了 15 分鐘就 AC 掉了,整體難度中等偏下,偏重基礎邏輯與模擬實現。 下面整理一下題目與思路,給還沒做的同學參考一下。
Q1: Valid Parentheses String
Problem:
You are given several strings containing only parentheses characters '(', ')', '{', '}', '[', ']'.
For each string, determine if it is valid — meaning all brackets are closed and ordered correctly.
Solution Idea:
Use a stack to simulate the matching process.
- Traverse each character:
- If it’s an opening bracket, push it to the stack.
- If it’s a closing bracket, check whether it matches the top element of the stack.
- If it matches, pop; otherwise, return invalid immediately.
At the end, if the stack is empty, the string is valid.
This is basically the LeetCode “Valid Parentheses” template question — super straightforward, perfect warm-up.
Q2: Maximum Overlapping Team Size
Problem:
You are given n time intervals representing the working hours of different teams.
Find the maximum number of teams that are active (overlapping) at the same time.
Solution Idea:
Classic interval overlap problem — similar to “Meeting Rooms II.”
- Extract all start and end points.
- Mark starts as
+1, ends as-1. - Sort all points by time, and accumulate the counts.
- Keep track of the maximum cumulative value — that’s the maximum overlapping team size.
It can also be done via prefix counting or sweep line method; both are efficient since the input size is small.
OA Overall Review
这次 OA 两道题都非常常规,难度和 LeetCode Easy ~ Medium 持平。
系统界面简洁,输入输出没坑,时间 60 分钟足够。学员因为之前在我们这边练过几次“逻辑+实现题”模拟,整个流程几乎是 autopilot 模式,全程稳到不行。
MathWorks 的 OA 没有算法陷阱,考的其实就是 coding 手感和基础题熟练度,节奏和沟通感比技巧更重要。

FAQ:MathWorks OA 常見疑問
Q1: OA 是在什麼平臺做的?
官方自家平臺,介面清爽穩定,不需要額外安裝外掛程式。
Q2: 有沒有拍攝或監控?
沒有攝像頭監控,但全程錄屏檢測環境,不建議切屏。
Q3: 題目風格?
偏向基礎演算法和邏輯題,代碼要求簡潔清晰,不考奇技淫巧。
Q4: 難度相比其他公司?
明顯比金融類 OA(Citadel、IMC)輕鬆,也比 Amazon OA 簡單,屬於“純 coding 實現”型測試。
Programhelp 讓你在實戰中突出重圍
MathWorks 這種邏輯+實現型 OA,最容易在細節上掉分(邊界、格式、時間管理)。 我們這邊提供的 遠端無痕助攻方案,能在限定時間內幫你:
- 實時語音提醒輸入輸出規範;
- 類比官方環境預演;
- 聯機無痕協作,保證代碼節奏與思路同步;
- 附贈常見題型復盤。
不少同學靠這套方案穩穩拿到 MathWorks、NVIDIA、Stripe 等公司面邀。
如果你也想提前預演 OA 節奏,歡迎私信瞭解最新方案。