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
- React
- VanillaJs
Requirements
- Create a deck of 52 cards
- Shuffle the cards
- Draw the first 5 cards from top
- 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.
- Always define your state first → how many state item needed.
- Keep the code configurable and reusable → can ask the interviewer for this as well.
- Keep the methods pure.
- Define events
- Define effects
Outcome
Rejected