Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPrep Other Coding Questions Asked by Affirm
Continue with targeted prep from Affirm's coding question bank.
Interview Summary
The Affirm technical phone screen used a relatively straightforward card-game simulation rather than a difficult algorithm problem. The exercise tested implementation speed and object-oriented design: define the necessary classes and methods, simulate a shuffled 52-card deck, distribute cards among players, and determine the winner.
Interview Details
Coding / OOD — Multiplayer Card Game
Design and implement a game using a standard deck of 52 playing cards. The deck is first shuffled and then distributed among the players. Each player holds their cards as a pile. During a round, players compare the card at the top of their pile.
The player with the stronger card wins the round and collects the relevant cards from that round. At the end of the game, determine the winner based on who has collected or retained the largest number of cards. The
Unlock Full Details
Create a free account to unlock this interview experience report.