最近我們這邊陸續有不少同學順利通過 Stripe OA ,很多人反饋說題庫其實比較集中,練過 LeetCode 的話,上手會相對輕鬆。 大家把遇到的題目做了記錄,我整理了一下,發現這 6 道題基本覆蓋了 Stripe 的大部分 OA 題庫。 分享出來給準備 Stripe 的同學們參考~
1. Atlas Company Name Check
Problem Statement:
Given a company name string, determine whether it is valid according to Stripe’s rules.
- The name must not contain special characters (only letters, numbers, and spaces are allowed).
- The length should be between 2 and 50 characters.
- The name must not appear in a given blacklist of forbidden names.
Return "valid" if the name passes all checks, otherwise return "invalid".
2. Card Range Obfuscation
Problem Statement:
You are given a list of credit card number ranges represented as [start, end]. For security reasons, you must output obfuscated ranges, replacing digits with "X" except for the first 2 and last 2 digits.
- If two ranges overlap or are adjacent, merge them into one.
- Output the merged and obfuscated ranges in ascending order.
3. Catch Me If You Can — Fraud Detection
Problem Statement:
You are given a list of transactions with the following fields:
user_id,timestamp,amount,ip_address.
A transaction is considered fraudulent if:
- The same user makes multiple transactions from different IP addresses within 10 minutes.
- The total transaction amount from a user in any 1-hour window exceeds $5000.
Return the list of fraudulent transaction IDs in ascending order.
4. Store Closing Time Penalty
Problem Statement:
A store closes at a specific time T. Customers arrive with orders at different times. If an order is accepted after closing time, a penalty is incurred. Each order has a processing time and a penalty value.
Find the optimal schedule of processing orders that minimizes the total penalty.
(Hint: This is a variation of scheduling with deadlines and penalties, solvable with DP or greedy approaches.)
5. Subscription Notification Scheduler
Problem Statement:
You are given a list of subscriptions, each defined by:
start_time,interval(in days), andcount.
You must simulate the notification system and output the exact timestamps of all notifications that need to be sent. The notifications should be orderedby time, and if two notifications happen at the same time, order them by subscription ID.
6. Accept-Language Header Parser
Problem Statement:
You are given an HTTP header string in the format:
Accept-Language: en-US,en;q=0.8,fr;q=0.9,de;q=0.7
Parse the string and return the list of languages ordered by their quality value (q). If q is missing, it defaults to 1.0. Ties should be broken by the order of appearance.
Output for the above example should be:
["en-US","fr","en","de"]
常見問題 (FAQ)
Q: Stripe OA 一般有幾道題? 時間多長?
A: 通常是 2 道程式設計題,時長 90 分鐘左右,題庫固定在這 6~8 道里輪換。
Q: 題目難度相當於什麼水準?
A: 整體相當於 LeetCode Medium,邏輯性強但不涉及太多複雜演算法。
Q: 有沒有樣例測試?
A: 有的,平臺會提供樣例輸入輸出和隱藏測試,代碼必須覆蓋邊界情況才能通過。
Q: 刷哪些題最有説明?
A: 建議重點練習字串 parsing、區間合併、調度類 DP/貪心題。
Stripe OA 全程助攻|遠端無痕+語音提醒,輕鬆搞定大廠筆試面試
Stripe OA 最大的特點就是題目貼合業務場景,看似不難,但時間緊張+邊界條件多,很容易在最後幾分鐘因為小 bug 掉分。 我們團隊長期提供 OA 全程輔助:
- 遠端無痕連線,確保測試用例 100% 通過
- 實時語音提醒,幫你避免踩坑卡點
- 面試場景下還能提供思路點撥,確保你不卡殼
如果你也在準備 Stripe 或其他大廠 OA/面試,別一個人硬扛,找對方法和幫手,成功會更快一步。