InterviewDB Experience · San Francisco

Memory Game: Implement the Card-Matching Memory Game with Flip Animation Logic

Interview Experience

Problem Build the core logic and frontend for a card-matching memory game. An NxM grid of face-down cards hides N*M/2 pairs. Players flip two cards per turn; a match keeps them face-up, a mismatch flips them back after a short delay. Requirements: Only 2 cards can be in the "pending" state at once. Enforce a delay before non-matching cards are flipped back. Follow-ups How do you prevent the user from clicking a third card while the mismatch delay is running? How would you implement the shuffle t…

Full Details

🔒

Unlock all Nextdoor questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a nextdoor interview during the phone round.

It covers the following topics: Frontend, Phone, Coding, Onsite, Matrix .