Airbnb-SSE frontend-Screening

Airbnb-SSE frontend-Screening

Description Template:
Level: SSE
Education: Bachelors
Years of Experience: 10
Questions Asked:
Card draw game
Asked to create a card draw game.
Framework: choose any one

  1. React
  2. VanillaJs

Requirements

  1. Create a deck of 52 cards
  2. Shuffle the cards
  3. Draw the first 5 cards from top
  4. You should always draw 5 cards, if you reach the end loop back.

Even though the requirements specify 52,5 interviewer was expecting to have this configurable.

Learning
I jumped onto the implementation without discussing and stating out the following.

  1. Always define your state first → how many state item needed.
  2. Keep the code configurable and reusable → can ask the interviewer for this as well.
  3. Keep the methods pure.
  4. Define events
  5. Define effects

Outcome
Rejected

@anon_380746 this was your technical phone screen or onsite? I was asked image carousal with a twist. this seems hard for the TPS

were you asked image carousel at airbnb? what was the twist?

each image had a duration before it automatically moved to the next slide. you also had to display the time in a live countdown