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

SDE - 1

Grab
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I started my journey in coding in my second year, motivated by my seniors. Initially, I began by learning basic programming languages. Later, I started participating in contests on coding platforms and solving questions there. I made an effort to be consistent. After 2-3 months, I was able to solve some questions. Then, in my third year, I studied core subjects like OS, DBMS, OOPS, and CN in depth. In this manner, I was well prepared before the placement season.
Application story
This company visited to my campus for placement.
Why selected/rejected for the role?
I was rejected because I was not able to maintain the timing of the questions to be answered; I should have been faster.
Preparation
Duration: 8 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Practice coding from coding platforms, do at least 100 questions.
Tip 2 : Practice any one automation framework includes design patterns.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Restrict your resume to 1 page and write your practical work only.
Tip 2 : Mention top topics like Selenium, Rest Assured Automation, Language used Java,etc.

Interview rounds

01
Round
Easy
Video Call
Duration60 mins
Interview date17 Feb 2023
Coding problem2

1. Left View Of Binary Tree

Moderate
30m average time
60% success
0/80
Asked in companies
SAP LabsZSThought Works

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values



Example :
If the input tree is as depicted in the picture: 

alt text

The Left View of the tree will be:  2 35 2 
Problem approach

The problem can be solved using simple recursive traversal. We can keep track of the level of a node by passing a parameter to all recursive calls. The idea is to keep track of the maximum level as well. Whenever we see a node, whose level is greater than the maximum level so far, we print the node because it is the first node in its level (note that we traverse the left subtree before the right subtree).

Try solving now

2. Middle Of Linked List

Easy
20m average time
80% success
0/40
Asked in companies
NoBrokerIBMHCL Technologies

Given a singly linked list of 'N' nodes. The objective is to determine the middle node of a singly linked list. However, if the list has an even number of nodes, we return the second middle node.

Note:
1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
Problem approach

Traverse linked list using two-pointers. Move one pointer by one and the other pointers by two. When the fast pointer reaches the end, the slow pointer will reach the middle of the linked list.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date17 Feb 2023
Coding problem2

1. Encode the Message

Easy
18m average time
90% success
0/40
Asked in companies
MicrosoftAmazonWalmart

You have been given a text message. You have to return the Run-length Encoding of the given message.

Run-length encoding is a fast and simple method of encoding strings. The basic idea is to represent repeated successive characters as the character and a single count. For example, the string "aaaabbbccdaa" would be encoded as "a4b3c2d1a2".

Problem approach

Follow the steps below to solve this problem:

Pick the first character from the source string. 
Append the picked character to the destination string. 
Count the number of subsequent occurrences of the picked character and append the count to the destination string. 
Pick the next character and repeat steps 2, 3 and 4 if the end of the string is NOT reached.

Try solving now

2. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
Media.netHewlett Packard EnterpriseIBM

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Problem approach

I divided the input array into two halves, calls itself for the two halves, and then merge the two sorted halves. The merge() function is used for merging two halves. The merge(arr, l, m, r) is a key process that assumes that arr[l..m] and arr[m+1..r] are sorted and merges the two sorted sub-arrays into one.

Try solving now
03
Round
Easy
HR Round
Duration20 minutes
Interview date17 Feb 2023
Coding problem1

1. Basic HR Questions

Can you work under pressure?
What are your goals?
What motivates you to do good job?

Have you considered starting your own business?
How do you define success and how do you measure up to your own definition?
Tell me something about our company.

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
2 rounds | 4 problems
Interviewed by Grab
852 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Grab
604 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Grab
611 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Grab
567 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes