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

SDE - 1

MakeMyTrip
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 Months
Topics: Data Structures, Algorithms, OOPS, OS, DBMS
Tip
Tip

Tip 1 : Work on Competitive Programming skills. That is one thing most companies look out for during hiring. Solve at least 100 
questions from every topic.
Tip 2 : You should have at least 2 good projects on your resume. Only write the things that you are completely sure of.
Tip 3 : Work on CS fundamentals as well like -OOPS, OS, and DBMS. There will be MCQ questions from this in the coding round as well as in the 1:1 round

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Need at least 2 good projects on the resume. Write a short 2-3 lines summary of the project and the tech stack 
used.
Tip 2 : Resume should be 1 page only. Try to keep the Resume short with useful information only.
Tip 3 : Your Resume should clearly mention the skillset you have. Companies sometimes filter out Resume based on 
skillset only

Interview rounds

01
Round
Easy
Face to Face
Duration50 Minutes
Interview date10 Jun 2020
Coding problem1

It was on zoom from 5PM.

1. Next Greater Element

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftAmazonPaytm (One97 Communications Limited)

You have been given an array/list ‘ARR’ consisting of ‘N’ positive integers. Your task is to return the Next Greater Element(NGE) for every element.

The Next Greater Element for an element ‘X’ is the first element on the right side of ‘X’ in the array 'ARR', which is greater than ‘X’. If no such element exists to the right of ‘X’, then return -1.

For example:
For the given array 'ARR' = [7, 12, 1, 20]

The next greater element for 7 is 12.
The next greater element for 12 is 20. 
The next greater element for 1 is 20. 
There is no greater element for 20 on the right side.

So, the output is [12, 20, 20, -1].
Problem approach

It can be solved by taking 2 arrays: LeftArray[] and RightArray[].
LeftArray should contain max element from left side till index i. RightArray should contain the min element from the right side starting from the last index.

Now iterate over the given array and check if its greater than leftarr[i-1] and smaller than rightArray[i+1], if yes then print it else skip

Try solving now
02
Round
Easy
Face to Face
Duration60 Minutes
Interview date13 Jun 2020
Coding problem1

1. Connect Nodes at Same Level

Moderate
30m average time
70% success
0/80
Asked in companies
GoogleOlaMicrosoft

A binary tree is a tree where each node has at most two children i.e left child and right child.

You are given a binary tree, where the structure of the node is as follow -:

class BinaryTreeNode {
 int data;      // Value of the node.
 BinaryTreeNode *left;  // Pointer to left child node.
 BinaryTreeNode *right; // Pointer to right child node.
 BinaryTreeNode *next;  // Pointer to next right node at same level. 
}

Your task is to connect all the adjacent nodes at the same level in the given binary tree. You can do this by populating each 'next' pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially, all the next pointers are set to NULL.

For Example:

Consider the figure shown below. The left part represents the initial binary tree and right part represents the binary tree after connecting adjacent nodes at the same level.

alt text

In the tree shown in the picture above -:
The ‘next’ pointer of the node having value 2 is connected to the node having value 3.
The ‘next’ pointer of the node having value 4 is connected to the node having value 5.
The ‘next’ pointer of the node having value 5 is connected to the node having value 6.
The ‘next’ pointer of nodes having value 1, 3, 6 will have a value NULL as there are no next right nodes in their cases.

Note:

1. The structure of the ‘Node’ of a binary tree is already defined. You should not change it.   
2. The root of the binary tree is known to you.  
3. There is at least one node in the given binary tree.
4. You may only use constant extra space.
Problem approach

It can easily be solved by level order traversal. We only need to check the condition if the element->nextRight is NULL then point this element to NULL. Also one case can be to mark next of root element as NULL

Try solving now
03
Round
Easy
HR Round
Duration30 Minutes
Interview date16 Jun 2020
Coding problem1

1. Basic HR Questions

Why do you want to change?
What You are expecting from this role?
How will you resolve conflicts with your team members?

Problem approach

Tip 1 : Prepare keep answers to some basic HR Questions ready before the interview
Tip 2 : Keep answers short and to the point
Tip 3 : Don't oversell yourself. For ex: sometimes people keep saying they are very hardworking and it's their weakness and all. Please don't say these things as it might give wrong impression to interviewer

Here's your problem of the day

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

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by MakeMyTrip
825 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 13 problems
Interviewed by MakeMyTrip
828 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by MakeMyTrip
473 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by MakeMyTrip
467 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107831 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
52129 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32260 views
6 comments
0 upvotes