← Back to experiences
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/experiences/…$
Level: Senior-Level
Round: Phone Screen · Type: Coding · Difficulty: 6/10 · Duration: 60 min · Interviewer: Neutral
Topics: Object-Oriented Design, Algorithms, Probability
Location: San Francisco Bay Area
Interview date: 2026-01-20
I had a technical phone screen and was asked to design a deck of cards with shuffle and draw functionalities.
I was asked to design a deck of cards that supports shuffle and draw functions, ensuring the shuffle and draw probabilities are met. For the object-oriented design aspect, I had to design classes for Deck, Card, etc. I used the approaches from LeetCode's getRandom with O(1) complexity and shuffle array ideas.
I was told to attend onsite interview one week later.