← 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: Unknown Level
Round: Onsite · Type: Coding · Difficulty: 6/10 · Duration: 60 min · Interviewer: Unfriendly
Topics: Arrays, Subsets, Backtracking
Location: Mountain View, CA
Interview date: 2026-01-13
Question: I was asked to implement subset generation, first without duplicates, and then with duplicates.
The coding question I received focused on generating subsets. I was first asked to implement the solution assuming no duplicate elements exist in the input set. Then, I had to modify my solution to handle the case where duplicates are present.
My Approach:
Key Insights:
LeetCode similar: LeetCode Subsets, LeetCode Subsets II