注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Title: Stripe Coding Interview — Merchant Payout Reserve Calculator
I got a merchant payout reserve question in my Stripe coding interview. I had 45 minutes, worked through two parts in Java, and wrote my own test cases. Both parts worked on the cases I ran. The prompt allowed me to construct the input objects directly, so no JSON parsing was required.
Part 1 — Calculate a reserve for one merchant
A merchant processes a certain amount of money each day. Write calculate_payout_reserve to return how much of that money should be held backad $10,000 from subscriptions and $2,000 from charity. Subscriptions contributed $300 and charity contributed $0, so the function returned $300.
Has anyone else received this exact payout-reserve question? I saw two parts and would be curious whether anyone got a third follow-up. |