Problem database last updated: June 20, 2025

MMakeMyTrip logo

MakeMyTrip Coding Interview Questions

28 problems · 1 Easy, 20 Medium, 7 Hard · Ranked #71 of 458

Difficulty breakdown

1 Easy

4% · avg 23%

20 Medium

71% · avg 59%

7 Hard

25% · avg 18%

Top topics

array
57.1%
string
39.3%
dynamic-programming
35.7%1.8x
hash-table
32.1%
sliding-window
14.3%3x
depth-first-search
14.3%1.6x

Interview profile

Based on 28 reported problems, MakeMyTrip interviews are slightly harder than average - 25% Hard vs 18% across all companies. The majority (71%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, MakeMyTrip puts unusual emphasis on shortest-path (7.1% of problems, 14.3x the industry average), graph (10.7% of problems, 3.6x the industry average), sliding-window (14.3% of problems, 3x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (57.1%), string (39.3%), dynamic-programming (35.7%), hash-table (32.1%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 28 problems

Length of Longest Subarray With at Most K Frequency

Solve

You are given an integer array nums and an integer k.

MediumVery Likely
arrayhash-tablesliding-window

Longest Ideal Subsequence

Solve

You are given a string s consisting of lowercase letters and an integer k. We call a string t ideal if the following conditions are satisfied:

MediumVery Likely
hash-tablestringdynamic-programming

Reachable Nodes With Restrictions

Solve

There is an undirected tree with n nodes labeled from 0 to n - 1 and n - 1 edges.

MediumVery Likely
arrayhash-tabletree

First Missing Positive

Solve

Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums.

HardVery Likely
arrayhash-table

Cheapest Flights Within K Stops

Solve

There are n cities connected by some number of flights. You are given an array flights where flights[i] = [fromi, toi, pricei] indicates that there is a flight...

MediumVery Likely
dynamic-programmingdepth-first-searchbreadth-first-search

Minimum Window Substring

Solve

Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is inc...

HardLikely
hash-tablestringsliding-window

Jump Game

Solve

You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length...

MediumLikely
arraydynamic-programminggreedy

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardLikely
arraytwo-pointersdynamic-programming

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumLikely
arraysorting

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumLikely
hash-tablestringsliding-window

Word Search

Solve

Given an m x n grid of characters board and a string word, return true if word exists in the grid.

MediumLikely
arraystringbacktracking

Insert Delete GetRandom O(1)

Solve

Implement the RandomizedSet class:

MediumLikely
arrayhash-tablemath

Regular Expression Matching

Solve

Given an input string s and a pattern p, implement regular expression matching with support for '.' and '' where:

HardLikely
stringdynamic-programmingrecursion

Implement Trie (Prefix Tree)

Solve

A trie (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There are various appl...

MediumLikely
hash-tablestringdesign

Sliding Window Maximum

Solve

You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see...

HardLikely
arrayqueuesliding-window

Evaluate Division

Solve

You are given an array of variable pairs equations and an array of real numbers values, where equations[i] = [Ai, Bi] and values[i] represent the equation Ai /...

MediumLikely
arraystringdepth-first-search

Search a 2D Matrix II

Solve

Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties:

MediumLikely
arraybinary-searchdivide-and-conquer

Min Stack

Solve

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

MediumLikely
stackdesign

Increasing Triplet Subsequence

Solve

Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such indices e...

MediumLikely
arraygreedy

Longest Valid Parentheses

Solve

Given a string containing just the characters '(' and ')', return the length of the longest valid (well-formed) parentheses substring.

HardLikely
stringdynamic-programmingstack

Longest Palindromic Substring

Solve

Given a string s, return the longest palindromic substring in s.

MediumLikely
two-pointersstringdynamic-programming

Majority Element

Solve

Given an array nums of size n, return the majority element.

EasyLikely
arrayhash-tabledivide-and-conquer

Product of Array Except Self

Solve

Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].

MediumLikely
arrayprefix-sum

Find First and Last Position of Element in Sorted Array

Solve

Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.

MediumLikely
arraybinary-search

Edit Distance

Solve

Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2.

MediumLikely
stringdynamic-programming

Generate Parentheses

Solve

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

MediumLikely
stringdynamic-programmingbacktracking

Jump Game II

Solve

You are given a 0-indexed array of integers nums of length n. You are initially positioned at index 0.

MediumLikely
arraydynamic-programminggreedy

Reverse Nodes in k-Group

Solve

Given the head of a linked list, reverse the nodes of the list k at a time, and return the modified list.

HardLikely
linked-listrecursion

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent MakeMyTrip interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your MakeMyTrip coding interview

MakeMyTrip interviews focus heavily on array, string, dynamic-programming problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. MakeMyTrip interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does MakeMyTrip ask in interviews?add

MakeMyTrip has been reported to ask 28 distinct coding problems. The most common topics are array, string, dynamic-programming. 1 are Easy difficulty, 20 are Medium, and 7 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are MakeMyTrip coding interviews?add

Based on 28 reported problems, MakeMyTrip interviews are slightly harder than average - 25% Hard vs 18% across all companies. 71% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a MakeMyTrip coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, string, dynamic-programming. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your MakeMyTrip interview?

Simulate a real MakeMyTrip coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a MakeMyTrip interview with AIarrow_forward