Rubrik, Inc. interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Rubrik, Inc.
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structure, Algorithms(DP and Graph are must), Web Development, OOPS, Operating System, Database and Management, Competitive Programming, OR any other topic that you like for projects
Tip
Tip

Tip 1 : Do Complete Interview Bit, Puzzles and some questions from LeetCode
Tip 2 : Do 2 or 3 projects. Projects using different technologies are preffered.
Tip 3 : Give Practice Contests on Codeforces, Codechef. These help you to clear coding rounds which are useful for shortlisting for interview..

Application process
Where: Campus
Eligibility: Above 8.0
Resume Tip
Resume tip

Tip 1 : Never put anything on resume that you are not comfortable with.. Because if interviewer just start with that topic and you are not comfortable, this create bad impression on interviewer.
Tip 2 : Have 2 or 3 projects on different technologies.
Tip 3 : Put 2 or 3 college time achievement. (can be Competitive programming or Academic performance)

Interview rounds

01
Round
Hard
Online Coding Interview
Duration100 Minutes
Interview date15 Aug 2020
Coding problem3

**Criteria:
8 CPI or Above (only CSE, MnC). All students irrespective of history of backlogs or current backlogs were considered if they satisfied the CPI criteria.

It was first round..
This round was the Online test which was around 1 Hour 40 Minutes long(don't remember exact time).

Timing from 19:00 to 20:40
Environement was comfortable.
Hackerrank is a good platform for online tests.

All questions were new for me, So cant give any links.

1. Minimum Removals

Moderate
15m average time
85% success
0/80
Asked in companies
AdobeRubrik, Inc.Microsoft

You have been given an array/list "ARR" consisting of 'N' integers. You have also given an integer 'K'.

Your task is to find the minimum number of elements that should be removed from "ARR" (possibly zero) such that the difference between the maximum element and the minimum element of the remaining "ARR" is less than or equal to 'K', i.e. ARRmax - ARRmin <= K.

Note :

1. "ARR" can contain duplicates.

For Example :

Input: 'N' = 4 , "ARR" =  [5, 10 , 2] and 'K' = 3.
Output: 1

Explanation : Currently, the difference between the maximum and minimum element in the array is 10 - 2 = 8, which is greater than K (3). 
So, we need to remove some elements. The optimal way to get our result is to remove 10. After removing 10, the difference between maximum and minimum is 5 - 2 = 3, which is less than or equal to K.
Try solving now

2. Minimum Number Of Stabs To Kill King

Moderate
20m average time
70% success
0/80
Asked in companies
Rubrik, Inc.Amdocs

You are given the health of the king as an integer 'N'. You need to find the minimum number of stabs to kill the king. The king dies if the health becomes 0.

At any point, to decrease the health of the king you can apply either of two operations (types of stab):

1. The first kind of stab decreases the king’s health 'H' by 1 i.e 'H' = 'H'-1.
2. The second kind of stab decreases the king’s health to 'H1', where 'H'= 'H1'*'H2' and 'H1' >= 'H2' > 1 i.e if 'H' = 'H1'*'H2', then 'H' can decrease to 'H1' where 'H1' is the larger factor.

Note :

1. The king’s initial health is an integer and always positive.
2. After each step, the king’s health is decreased. It can not remain the same after a stab of either type.
Try solving now

3. Minimum time

Moderate
30m average time
60% success
0/80
Asked in companies
AppleRubrik, Inc.Novus Platform

There are ‘N’ junctions connected by ‘M’ bi-directional roads. At most, one road is present between any pair of junctions. There is no road connecting a junction to itself. The travel time for a road is the same in both directions.

A vehicle at a junction can start moving along a road only when the light at the current junction flashes green. If a vehicle arrives at a junction between green flashes, it must wait for the next green flash before continuing in any direction. If it arrives at a junction exactly when the light flashes green, it can immediately proceed along any road originating from that junction.

You are given a city map that shows travel times for all roads. For each junction ‘i’, you are given ‘P[i]’, the time period between green flashes of the light at that junction. The light at junction ‘i’ flashes green at times 0, P[i], 2P[i], 3P[i] and so on.

Your task is to return the minimum time taken from a given source junction ‘src’ to a given destination junction ’des’ for a vehicle when the traffic starts. The junctions are identified by integers ‘0’ through ‘N - 1’. If we cannot reach the destination junction, then return -1.

For example:
Consider if ‘N’ = 3 and edges are 
[[0, 1, 2],
 [1, 2, 4]]
'P' = [2, 3, 4], and we have to reach from junction 0 to 2.
The time consumed from junction 0 to 1 is 2. We have to wait for 1 for the next green flash at junction 1. The time consumed from junction 1 to 2 is 4. The path 0 -> 1 -> 2 takes time 2 + 1 (wait till 3) + 4 = 7. Hence, the answer is 7.
Try solving now
02
Round
Medium
Video Call
Duration75 Minutes
Interview date22 Aug 2020
Coding problem1

This was an Online F2F Technical Round conducted on zoom. Interviewer shared codepad link and you were asked to code and pass sample test case given by interviewer. Only one question(coding) was asked(More follow questions).
Interviewer was really helpful..

1. XOR Query

Moderate
10m average time
90% success
0/80
Asked in companies
UberRubrik, Inc.Urban Company (UrbanClap)

Assume you initially have an empty array say ‘ARR’.

You need to return the updated array provided that some ‘Q’ number of queries were performed on this array.

The queries are of two types:

1. 1 ‘VAL’, for this type of query, you need to insert the integer 'VAL' to the end of the array.
2. 2 ‘VAL’, for this type of query, you need to take the bitwise XOR of all the elements of the array with 'VAL' i.e each element of the array ‘ARR’ will be updated as ‘ARR[i]’ = ‘ARR[i]’ ^ ‘VAL’ ( ^ denotes the bitwise XOR operation).

Note:

1) Bitwise XOR operation takes two numbers and performs XOR operation on every bit of those two numbers. For example, consider two numbers 2 and 3 their bitwise XOR will be 1. Because the binary representation of 2 is '10' and the binary representation of 3 is '11'. And XOR of '10' and '11' will be '01'(because XOR evaluates to 0 if the corresponding bits are the same in both the operands, otherwise it evaluates to 1), which is equal to 1.

2) The first query will always be a type 1 query.

3) Note that the ith query should be performed on the array obtained after performing (i-1)th query on the array and so on i.e the changes of each query are updated on the original array itself.
Try solving now
03
Round
Medium
Video Call
Duration90 Miinutes
Interview date22 Aug 2020
Coding problem1

Again pattern was same(Zoom video call and I was asked to code and 1 question was there(+Follow up)).
Timing was afternoon time around 13:00

1. Scramble String

Hard
15m average time
85% success
0/120
Asked in companies
PostmanAmazonInfo Edge India (Naukri.com)

You are given an integer ‘N’ and two strings ‘S’ and 'R' each having size = ‘N’. You can scramble the string ‘S’ to obtain string 'R' using the following operations:

1. If the length of the string is greater than 1:

  • Select any random index and split the string into two non-empty substrings. For e.g: if the string is ‘S’, then divide it into two non-empty substrings ‘A’ and ‘B’ such that ‘S’ = ‘A’ + ‘B’.
  • You can choose to swap the two substrings or keep them in the same order, i.e., after this operation string ‘S’ may become either ‘S’ = ‘A’ + ‘B’ or ‘S’ = ‘B’ + ‘A’.
  • Apply the first step recursively on each of the two strings ‘A’ and ‘B’.
  • 2. If the length of the string is equal to 1 then stop.

    Your task is to return true if 'R' is a scrambled string of ‘S’ else return false.

    Note:

    1. Both the strings are non-empty and are of the same length.
    
    2. You can apply the above operations any number of times on ‘S’.
    
    3. The operations can only be applied on the string ‘S’.
    
    4. ‘S’ and 'R' consist of lowercase letters only.
    
    Try solving now
    04
    Round
    Easy
    HR Round
    Duration60 Minutes
    Interview date22 Aug 2020
    Coding problem1

    It was a zoom video call.
    In starting 5 minutes, interviewer tried to make me comfortable with him..

    1. Basic HR Questions

    Who is your role model?

    Where do you see yourself in 5 years?

    Problem approach

    Tip 1 : Just have a read of some common HR Questions.
    Tip 2 : Never write anything false in your CV.
    Tip 3 : After every interview I was asked "Whether I have any question for them".Just ask a question about company. This hows your interest in their firm.

    Here's your problem of the day

    Solving this problem will increase your chance to get selected in this company

    Skill covered: Programming

    What is recursion?

    Choose another skill to practice
    Similar interview experiences
    company logo
    SDE - 1
    3 rounds | 7 problems
    Interviewed by OYO
    4657 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 3 problems
    Interviewed by Amazon
    961 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    2 rounds | 5 problems
    Interviewed by Meesho
    6450 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 9 problems
    Interviewed by Salesforce
    3452 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - Intern
    3 rounds | 6 problems
    Interviewed by Amazon
    15481 views
    4 comments
    0 upvotes
    company logo
    SDE - Intern
    4 rounds | 7 problems
    Interviewed by Microsoft
    15339 views
    1 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 4 problems
    Interviewed by Amazon
    10142 views
    2 comments
    0 upvotes