This was a concurrency and thread-focused coding round, non-LeetCode style. The questions were difficult.
Sometimes, within the same problem, you might be asked to implement trivial thread-safe data structures instead of using built-ins, and then use them.
Overall, I found it very interesting and loved the interview, although I was rejected. The discussion was productive.
There is a single bathroom to be used in a voting agency for both Democrats (D) and Republicans (R).
This single bathroom can accommodate a maximum of 3 people.
Each person takes f(N) seconds to do their business. f(N) is a function of the person's name and returns a varying number.
Conditions:
While the bathroom is occupied, people are to wait in a queue.
What is the most optimal system for managing people in this queue so that the most eligible person instantly gets to use the bathroom whenever there is room, based on the above conditions?
The following metrics were computed from 7 interview experiences for the Rubrik Software Engineer role in Bengaluru, Karnataka.
Rubrik's interview process for their Software Engineer roles in Bengaluru, Karnataka is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for Rubrik's Software Engineer interview process in Bengaluru, Karnataka.