Affirm low-level design interview
You design and build a small working system in code: classes, interfaces, data structures and how they change when a new requirement arrives. In India, the 90-minute machine coding round (Flipkart, PhonePe, Swiggy, Razorpay) is often the first filter for SDE 2.
Affirm has no separate low-level design round at any level. Candidates report these object-oriented design problems inside coding rounds and, at senior levels, the design round, so practise them as coding problems: a clean class model, then working code.
| Progress | Problem as candidates report it | Next step |
|---|---|---|
| High-card game for two and then N players, with a tie pot (LLD)Class diagram, Java code and follow-ups | Start | |
| Replay redeem and unredeem events to find each user's valid promotions (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Aggregate loans up to each company's ultimate parent (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Propagate suspicious PII across underwriting events to flag fraud (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Debug and complete an existing fraud detector class (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Finish a loan-dispute status evaluator and fix a helper that sorts by the wrong field (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Join three CSV tables in Python (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Total a shop's revenue across nested branches with recursion (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Filter two strings of user logs by business rules and return the valid users (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Aggregate loan records and match repayments to outstanding loans (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Scrub confidential fields from a JSON document (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon |
How Affirm runs it
- Build five classic systems end to end under a 90-minute timer: parking lot, splitwise, snake and ladder, rate limiter, in-memory key-value store.
- Separate models, services and storage; keep the main method thin.
- Learn when to use strategy, factory and observer patterns, and when not to.
- Handle invalid input explicitly: graders check validation.
The low-level design round, scored by level · New to LLD? Start with OOP, SOLID and the design patterns, then the machine coding problems.
Questions people ask
Does Affirm have a low-level design or machine coding round?
Not as a fixed round, but candidates report object-oriented design questions: High-card game for two and then N players, with a tie pot (LLD); Replay redeem and unredeem events to find each user's valid promotions (machine coding); Aggregate loans up to each company's ultimate parent (machine coding); Propagate suspicious PII across underwriting events to flag fraud (machine coding); Debug and complete an existing fraud detector class (machine coding); Finish a loan-dispute status evaluator and fix a helper that sorts by the wrong field (machine coding); Join three CSV tables in Python (machine coding); Total a shop's revenue across nested branches with recursion (machine coding); Filter two strings of user logs by business rules and return the valid users (machine coding); Aggregate loan records and match repayments to outstanding loans (machine coding); Scrub confidential fields from a JSON document (machine coding).