Card Games, Trees and Stacks
A card-game simulation turns up in Affirm's coding rounds again and again, on phone screens and onsites alike. You usually write it as a class and then run it. Once the basic game works, a follow-up changes the rules and the code has to bend with it.
The other problems here are smaller class builds, some over trees and one over a stack.
Under the stories they're plain structures: queues, trees and linked lists. Once you name the structure, the rest is careful bookkeeping.
AffirmPremium lesson · Coding round
The 5 Affirm problems are below.
- A Premium questionCoding · Medium · Signature problem
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Medium · Frequently asked
+ 2 more in this lesson
Each with hints, the follow-up and a tested solution.
Get the Affirm questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
Affirm interview guideKnow what Affirm asks before you walk in.
24 coding · 2 system design · 13 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.