Community

Discussion Board

Anonymous interview experiences, offers and career talk from frontend engineers.

anon_679811

Airbnb Frontend Phone Screen: Card Game (React)

Airbnb · G8 FrontEnd Engineer · Pending

Rounds

Airbnb Frontend Phone Screen: Card Game (React)

Questions asked

Deck & Shuffle: Generate a standard 52-card deck (suits and ranks) and shuffle it fairly (such as Fisher-Yates)

Dealing & Edge Cases: Draw a set number of cards (5) from the top of the deck

No animations & transitions

Tips

Memorize the Fisher-Yates algo. I didn’t know this and my interviewer said it was okay to grab that utility sort (no one really uses this anyways), but to make up for that, they also asked me to focus on styling the cards to look close to the card so be good at that too.

No replies yet

Markdown supported. 20 more characters needed.