i
MakeMyTrip
Filter interviews by
Given a square chessboard of size 'N x N', determine the minimum number of moves a Knight requires to reach a specified target position from its initial position.
...Calculate the minimum number of moves a Knight needs to reach a target position on a chessboard.
Implement a function that takes knight's starting position, target position, and chessboard size as input
Use breadth-first search algorithm to find the shortest path for the Knight
Consider all possible 8 movements of the Knight on the chessboard
Return the minimum number of moves required for the Knight to reach the targ...
Given two strings, S
and X
, your task is to find the smallest substring in S
that contains all the characters present in X
.
S = "abdd", X = "bd"
Find the smallest substring in string S that contains all characters in string X.
Iterate through string S and keep track of characters in X found in a window
Use two pointers to maintain the window and slide it to find the smallest window
Return the smallest window containing all characters in X
Given a non-decreasing sorted array ARR
of N
positive numbers, determine the smallest positive integer that cannot be expressed as the sum of elements from ...
Find the smallest positive integer that cannot be expressed as the sum of elements from any proper subset of a non-decreasing sorted array of positive numbers.
Start with the smallest possible integer that cannot be represented, which is 1.
Iterate through the array and update the smallest integer that cannot be represented.
If the current element is greater than the smallest integer that cannot be represented, retur...
Designing a traffic light system involves creating a system that controls the flow of traffic at intersections.
Divide the traffic light system into three main lights: red, yellow, and green.
Implement timers to control the duration of each light.
Include sensors to detect the presence of vehicles and pedestrians.
Consider implementing a pedestrian crossing signal.
Integrate a central control system to coordinate the t...
OOP concepts include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation restricts access to certain components of an object, protecting its integrity.
Polymorphism allows objects to be treated as instances of their parent class.
Abstraction hides the complex implementation details of an object and only shows the nec...
AJAX allows for asynchronous communication between client and server without needing to reload the entire page.
AJAX stands for Asynchronous JavaScript and XML.
It allows for sending and receiving data from a server without reloading the entire page.
AJAX uses XMLHttpRequest object to make requests to the server.
It can update parts of a web page without requiring a full page reload.
Commonly used in web applications t...
AngularJS is a full-fledged MVC framework for building dynamic web applications, while jQuery is a lightweight library for DOM manipulation and event handling.
AngularJS is a full-fledged MVC framework, providing features like two-way data binding, dependency injection, and routing.
jQuery is a lightweight library primarily used for DOM manipulation and event handling.
AngularJS is suitable for building single-page a...
Given a string S
which represents a number, determine the smallest number strictly greater than the original number composed of the same digits. Each digit's frequency...
The task is to find the smallest number greater than the given number with the same set of digits.
Iterate from right to left to find the first digit that can be swapped with a larger digit to make the number greater.
Swap this digit with the smallest digit to its right that is larger than it.
Sort all digits to the right of the swapped digit in ascending order to get the smallest number.
If no such number exists, ret...
Given an array of distinct positive integers ARR
and a non-negative integer 'B', find all unique combinations in the array where the sum is equal to 'B'. Numbers can be ch...
The task is to find all unique combinations in an array where the sum is equal to a given target sum, with elements in non-decreasing order.
Use backtracking to generate all possible combinations.
Sort the array to ensure elements are in non-decreasing order.
Keep track of the current combination and sum while exploring the array.
Recursively explore all possible combinations.
Return the valid combinations that sum up ...
You are given a binary tree of integers. Your task is to determine the left view of the binary tree. The left view consists of nodes that are visible when the tree ...
The task is to determine the left view of a binary tree, which consists of nodes visible when viewed from the left side.
Traverse the binary tree level by level from left to right, keeping track of the first node encountered at each level.
Use a queue to perform level order traversal and keep track of the level number for each node.
Store the first node encountered at each level in a result array to get the left view...
I applied via Approached by Company and was interviewed in Nov 2024. There was 1 interview round.
Design a stack that supports push, pop, top, and retrieving minimum element in constant time.
Use two stacks - one to store the actual elements and another to store the minimum values encountered so far
When pushing an element, check if it is smaller than the current minimum and if so, push it to the minimum stack
When popping an element, check if it is the current minimum and if so, pop from the minimum stack as well
Top ...
Find the maximum circular subarray sum in an integer array.
Calculate the non-circular maximum subarray sum using Kadane's algorithm.
Calculate the circular maximum subarray sum by subtracting the minimum subarray sum from the total sum.
Compare the non-circular and circular maximum subarray sums to get the overall maximum sum.
I applied via Campus Placement and was interviewed in Dec 2024. There were 3 interview rounds.
Basic Aptitude question were asked.
Great gd on Remote work vs Traditional work
I am a recent graduate with a degree in Business Administration and a passion for leadership and problem-solving.
Graduated with a degree in Business Administration
Passionate about leadership and problem-solving
Completed internships in marketing and finance
Led a team project to increase sales by 20%
I am confident in my abilities and believe I can bring valuable skills to the team.
I have a strong work ethic and am dedicated to achieving success.
I am a quick learner and adapt well to new environments.
I have relevant experience and skills that align with the requirements of the role.
Design a low-level architecture for a ticket booking platform like BookMyShow.
User Management: Handle user registration, login, and profile management.
Event Management: Manage events, including creation, updates, and deletions.
Booking System: Implement a system for selecting seats, processing payments, and confirming bookings.
Notification Service: Send notifications via email/SMS for booking confirmations and reminders...
I appeared for an interview in Apr 2025, where I was asked the following questions.
Simplify mathematical expressions using stacks to manage signs effectively.
Use a stack to keep track of the current sign (+ or -).
Iterate through the expression character by character.
When encountering '(', push the current sign onto the stack.
When encountering ')', pop the sign from the stack.
Adjust the signs based on the current context (e.g., if a '-' is encountered).
Example: For 'a +(b-c)-(f-d)', the output should ...
Find the length of the longest consecutive sequence in an array using a HashSet.
Use a HashSet to store unique elements for O(1) lookups.
Iterate through each number in the array.
For each number, check if it's the start of a sequence (i.e., number - 1 is not in the set).
Count consecutive numbers by checking if the next number exists in the set.
Example: For [-1, 0, 4, 5, 8, 10, 6], the longest sequence is 4, 5, 6 with len...
I applied via LinkedIn and was interviewed in Oct 2024. There was 1 interview round.
Train water trapping problem involves calculating the amount of water that can be trapped between blocks.
Calculate the maximum height of blocks on left and right of each block
Find the minimum of the two heights and subtract the height of the current block to get trapped water
Sum up the trapped water for all blocks to get total trapped water
Reverse a stack using another stack and recursion to achieve the desired order of elements.
Use a temporary stack to hold elements while reversing.
Pop elements from the original stack and push them onto the temporary stack.
Once the original stack is empty, pop from the temporary stack to restore the order.
Recursion can be used to pop all elements and then push them back in reverse order.
Search for an element in a sorted rotated array
Use binary search to find the pivot point where the array is rotated
Then perform binary search on the appropriate half of the array to find the element
Handle cases where the element is not found in the array
Design a low-level architecture for a Twitter-like social media platform.
User Management: Handle user registration, authentication, and profiles.
Tweet Management: Allow users to create, read, update, and delete tweets.
Feed Generation: Implement algorithms to generate a personalized feed for users.
Follow System: Enable users to follow/unfollow others and manage relationships.
Notifications: Provide real-time notification...
Design a high-level architecture for a multiplayer poker game application.
User Authentication: Players can create accounts and log in securely.
Game Lobby: A centralized area where players can join or create poker tables.
Game Logic: Implement rules for poker variants (e.g., Texas Hold'em, Omaha).
Real-time Communication: Use WebSockets for real-time updates between players.
Database: Store user profiles, game history, and...
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
To debug a 500 error, check server logs, review code changes, test API endpoints, and use debugging tools.
Check server logs for error details
Review recent code changes that may have caused the error
Test API endpoints using tools like Postman
Use debugging tools like Chrome DevTools or Firebug
Merge two strings diagonally in a Java array of strings.
Iterate through each row and column to merge characters diagonally
Keep track of the diagonal position to insert characters from both strings
Handle cases where strings have different lengths
Example: String 1: 'hello', String 2: 'world', Merged: 'hweolrllod'
Example: String 1: 'abc', String 2: '123', Merged: 'a1b2c3'
I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.
1 hr of test on code earth platform
LPS array in string refers to the Longest Palindromic Substring array in a given string.
Create an array to store all the palindromic substrings found in the given string.
Iterate through the string and check for palindromic substrings of different lengths.
Store the longest palindromic substrings in the array.
Dynamic Programming on grid problems involves optimizing paths or values in a 2D matrix using overlapping subproblems.
Define the grid dimensions (m x n) and initialize a DP table.
Base case: Set DP[0][0] = grid[0][0] for starting point.
Fill the first row and first column by accumulating values.
Use the relation DP[i][j] = grid[i][j] + min(DP[i-1][j], DP[i][j-1]) for other cells.
Example: For a grid with values, calculate ...
I applied via Recruitment Consulltant and was interviewed in Oct 2024. There was 1 interview round.
What do you charge for VISA insurance?
Top trending discussions
Some of the top questions asked at the MakeMyTrip interview -
The duration of MakeMyTrip interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 105 interview experiences
Difficulty level
Duration
based on 928 reviews
Rating in categories
5-8 Yrs
Not Disclosed
4-6 Yrs
Not Disclosed
Senior Software Engineer
335
salaries
| ₹19 L/yr - ₹33 L/yr |
Assistant Manager
282
salaries
| ₹9 L/yr - ₹15.8 L/yr |
Software Engineer
255
salaries
| ₹12.6 L/yr - ₹23 L/yr |
Holiday Expert
235
salaries
| ₹2 L/yr - ₹6.1 L/yr |
Senior Business Development Manager
221
salaries
| ₹5.4 L/yr - ₹11.7 L/yr |
Cleartrip
Amazon
Flipkart
Indiamart Intermesh