Grab interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Grab
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I was always interested in computers and technology, but I didn't know anything about programming. In high school, I took a computer science class, and I really enjoyed it. I decided that I wanted to learn more about programming, so I started teaching myself. After a few years of self-study, I felt confident enough to apply for internships. I got an internship at a small startup company where I worked on developing a new web application.
Application story
Grab Company came to our campus to recruit 2nd and 3rd-year students. After observing their requirements, I considered myself to be qualified for the job.
Why selected/rejected for the role?
I was selected for the software developer job due to my strong coding skills, passion for problem-solving, and ability to work well in a team. I have a proven track record of success in developing high-quality software, and I am confident that I can make a significant contribution to the company.
Preparation
Duration: 4 Months
Topics: Dynamic Programming, Object Oriented Programming, Data Structures, Algorithms, Operating Systems, DBMS, Networking
Tip
Tip

Tip 1: Start with the basics.

Tip 2: Divide big topics into smaller segments and prepare for them accordingly. 

Tip 3: Focus more on solving over 100 questions on each topic rather than cramming theory.

Application process
Where: Campus
Eligibility: Above 8 CGPA till 6th semester for 3rd year students
Resume Tip
Resume tip

Tip 1: Make it concise.
Tip 2: Emphasize showing your projects.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date13 Nov 2022
Coding problem2

Round 1 was a coding round with a duration of 120 minutes; it was a proctored exam.

1. Boxes Of Chocolates

Moderate
20m average time
86% success
0/80
Asked in companies
Samsung R&D InstituteGrabFlipkart limited

This is the time when Dr. Stephen wants to distribute chocolates. He has N number of boxes in a row, and each box contains some chocolates. Now, He wants to distribute chocolates to K children keeping in mind that distribution should be as fair as possible. To fairly distribute the gift boxes, he decided to give the maximum number of chocolates equally to K children.

Formally, There are N boxes with a different number of chocolates in them. The task is to divide the chocolates equally among K children where you can only choose consecutive boxes(subarray) to distribute chocolates. You need to print the maximum number of chocolates each child can get.

For Example: for the given boxes of chocolates [3,2,2,5,4,1] and 5 students.

Output: 2 

If there is no restriction on choosing the boxes then the maximum number of chocolates the 5 students equally can have is 3 by picking all boxes except the box at index 2(0-based indexing). So total candies will be 3+2+5+4+1 = 15 and each of the 5 students will get 15/5=3 candies. 

But we are allowed to choose only consecutive boxes. So if we choose boxes [0,1] then 3+2=5 then each student will have only 1 chocolate and when we choose boxes[4,6] as 5+4+1=10 then each student will have 2 chocolates. So the maximum number of chocolates each student can get is 2.
Problem approach
  • Read the number of boxes and the number of chocolates per box.
  • Sort the boxes in increasing order of the number of chocolates.
  • Iterate through the boxes and find the maximum number of chocolates that can be distributed to the children.
Try solving now

2. Longest Subarray Zero Sum

Easy
15m average time
85% success
0/40
Asked in companies
DelhiveryBNY MellonMorgan Stanley

Ninja loves playing with numbers. So his friend gives him an array on his birthday. The array consists of positive and negative integers. Now Ninja is interested in finding the length of the longest subarray whose sum is zero.

Problem approach
  • Initialize a variable to store the length of the longest subarray whose sum is zero.
  • Iterate through the array and update the length of the longest subarray whose sum is zero; you can use a for loop.
  • Test the code using custom cases.
Try solving now
02
Round
Easy
Video Call
Duration50 minutes
Interview date20 Nov 2022
Coding problem2

1. Puzzle

Suppose a newly born pair of rabbits, one male and one female, is put in a field. Rabbits can mate at the age of one month, so that at the end of its second month, a female can produce another pair of rabbits. Suppose that rabbits never die, and that the female always has one new pair (one male and one female) every month from the second month on. How many pairs will there be in one year? (Learn)

2. Clone Graph

Moderate
25m average time
75% success
0/80
Asked in companies
MicrosoftGrabUber

You are given a reference/address of a node in a connected undirected graph containing N nodes and M edges. You are supposed to return a clone of the given graph which is nothing but a deep copy. Each node in the graph contains an integer “data” and an array/list of its neighbours.

The structure of the graphNode class is as follows:

class graphNode 
{  
    public:
        int data;
        vector<graphNode*> neighbours;
}
Note :
1. Nodes are numbered from 1 to N.

2. Your solution will run on multiple test cases. If you are using global variables make sure to clear them.
Try solving now
03
Round
Easy
HR Round
Duration20 minutes
Interview date29 Nov 2022
Coding problem1

1. Basic HR Questions

Tell me about yourself.
Why are you interested in this position?
What are your strengths and weaknesses?
What are your career goals?
Why should we hire you?
Do you have any questions for us?

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
Software Engineer
1 rounds | 3 problems
Interviewed by Grab
990 views
0 comments
0 upvotes
company logo
Software Engineer
1 rounds | 2 problems
Interviewed by Grab
906 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 3 problems
Interviewed by Grab
1062 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by Grab
881 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7874 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9973 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4310 views
1 comments
0 upvotes