Card Game Simulation
Asked at Affirm · Coding Questions · Difficulty: Medium · Last asked Jan 2, 2026
Simulate a turn-based card game between two players with a 1–52 deck, scoring each round, then extend to N players and M cards. Pure simulation with edge-case handling on uneven deals.
Loading the problem…
More Affirm interview questions
- Design an A/B Testing / Experimentation Platform
- Venmo-Style P2P Payment Data Model
- Loan Aggregation & Transaction Matching (Parent-Company Resolution)
- Hiring Manager & Behavioral Rounds
- Transaction Aggregation by 24-Hour Buckets
- Promotion Offer Redemption Tracking