Stripe 的 SDE 全流程面试,从初筛到五轮 Onsite,节奏紧凑、强度高。整体感受:不卷算法、不背模板,而是极度关注代码整洁度、系统设计思维与真实工程能力。首先说下Stripe的技术面试流程,ng是三轮:coding,integration,bug squash,intern是两轮:coding,integration,分享下Stripe。
Stripe面试极度看重你过往的项目经历。你的简历会被面试官像用放大镜一样翻来覆去地问,每一个你觉得微不足道的项目细节都可能被拎出来深挖。面试官会像一个真正的同事一样,不断追问你“why”,挑战你的技术选型、你的架构设计、你的trade-off。如果你只是为了面试而刷题,没有真实的项目经验,这一关会非常痛苦。 他们会问到你怀疑人生,比如“你当时为什么不用另一个框架,它有什么缺点?”“这个bug你debug了多久,根源是什么?”
Stripe 面试时间线
10.14 拿到Stripe OA
11.7 第一轮Phone Screen
12.2 Coding + Debug + Integration
12.22 Manager Chat
1.9 拿到Offer
整个耗时快两个月,流程很长,技术面试每轮结束后约的很快。
Stripe 面试真题分享
Recruiter call
Recruiter首先call了半小时左右,是一位很nice的hr小姐姐,很详细地介绍了申请的岗位。可以看得出来Stripe的面试比较重视代码能力而不是算法难度,不同岗位面试流程是一样的,技术栈不要求匹配,这点对我很友好。
电面
题目是Shipping cost,需要实现一个函数:calculate_shipping_cost(order, shipping_cost),根据order和shipping cost计算总运费。
第一问:固定单价(最基础)
Order
{
"country": "US", // 或 "CA"
"items": [
{ "product": "mouse", "quantity": 20 },
{ "product": "laptop", "quantity": 5 }
]
}Shipping Cost(固定单价)
{
"US": [
{ "product": "mouse", "cost": 550 },
{ "product": "laptop", "cost": 1000 }
],
"CA": [
{ "product": "mouse", "cost": 750 },
{ "product": "laptop", "cost": 1100 }
]
}
计算规则
- cost 是 单价
- 总价 = 单价 × 数量
- 按国家选择对应规则
结果
calculate_shipping_cost(order_us, shipping_cost) == 16000
calculate_shipping_cost(order_ca, shipping_cost) == 20500解题思路

第二问:按数量区间定价(阶梯价格)
价格不固定,而是根据 quantity 落在哪个区间
Shipping Cost(区间定价)
US
{
"US": [
{
"product": "mouse",
"costs": [
{
"minQuantity": 0,
"maxQuantity": null,
"cost": 550
}
]
},
{
"product": "laptop",
"costs": [
{
"minQuantity": 0,
"maxQuantity": 2,
"cost": 1000
},
{
"minQuantity": 3,
"maxQuantity": null,
"cost": 900
}
]
}
]
}计算规则:根据quantity 命中某个区间,使用该区间的单价,仍然是:单价 × 数量
结果
calculate_shipping_cost(order_us, shipping_cost) == 15700
calculate_shipping_cost(order_ca, shipping_cost) == 20200解题思路

第三问:两种计费方式
在第二问基础上,引入cost type,cost type:incremental:按件累加(第二问逻辑);fixed:只要数量在区间内,总价固定,不乘数量
Shipping Cost(US 示例)
{
"US": [
{
"product": "mouse",
"costs": [
{
"type": "incremental",
"minQuantity": 0,
"maxQuantity": null,
"cost": 550
}
]
},
{
"product": "laptop",
"costs": [
{
"type": "fixed",
"minQuantity": 0,
"maxQuantity": 2,
"cost": 1000
},
{
"type": "incremental",
"minQuantity": 3,
"maxQuantity": null,
"cost": 900
}
]
}
]
}计算规则总结(第三问关键)
- 根据国家
- 根据 product
- 找到命中 quantity 的区间
- 根据
type计算:incremental→cost × quantityfixed→cost
结果
calculate_shipping_cost(order_us, shipping_cost) == 14700
calculate_shipping_cost(order_ca, shipping_cost) == 19100解题思路

了解更多
求职辅助服务,是关于时间和品质的较量。咨询 Interview Aid团队,获取最专业的Tech求职辅助。
想要和我们的面试辅助团队进行一次免费的沟通,我们会直击要点,回答你的所有疑问,并向你完整介绍我们的辅助方式。