i
MakeMyTrip
Filter interviews by
Find the subset of an array with the largest sum of continuous positive numbers.
Iterate through the array and keep track of the current sum and the maximum sum seen so far.
If the current element is positive, add it to the current sum. If it is negative, reset the current sum to 0.
Also keep track of the start and end indices of the maximum sum subset.
Return the subset using the start and end indices.
A traffic light system controls the flow of traffic at intersections.
The system consists of three lights: red, yellow, and green.
Each light has a specific duration for which it stays on.
The system also includes sensors to detect the presence of vehicles and pedestrians.
The duration of each light can be adjusted based on traffic patterns.
The system can be connected to a central control system for remote monitoring ...
Evaluate C1 and C2 for hashCode and equals methods to ensure proper functionality as keys in a hashmap.
Check if both classes override hashCode() method correctly.
Ensure equals() method is implemented to compare relevant fields.
Consider immutability of objects; immutable objects are better for keys.
Evaluate performance: which class has a more efficient hash function?
Look for any additional fields that may affect eq...
I effectively manage multiple tasks by prioritizing, organizing, and utilizing tools for efficiency.
Prioritization: I assess tasks based on urgency and importance, ensuring critical tasks are completed first. For example, during a product launch, I prioritized marketing strategies over administrative tasks.
Time Management: I allocate specific time blocks for each task, using techniques like the Pomodoro Technique ...
DBMS is a software that manages databases, SQL is a language used to interact with databases.
SQL stands for Structured Query Language
SQL is used to retrieve, update, and manage data in a database
Basic SQL commands include SELECT, INSERT, UPDATE, DELETE
Example: SELECT * FROM table_name WHERE condition;
Deadlocks occur when two or more processes are waiting for each other to release resources, leading to a standstill.
4 conditions of Deadlocks: mutual exclusion, hold and wait, no preemption, circular wait
Preventing Deadlocks: using a proper resource allocation strategy, implementing timeouts, avoiding circular wait, using deadlock detection and recovery algorithms
Example: Two processes each holding a resource and ...
Coalesce and repartition are both methods used in Pyspark for reducing the number of partitions in a DataFrame.
Coalesce is used to reduce the number of partitions without shuffling the data, while repartition involves shuffling the data to create a specified number of partitions.
Coalesce is more efficient when reducing the number of partitions, as it avoids shuffling the data unnecessarily.
Repartition is useful wh...
Redux is a predictable state container for JavaScript apps. Event loop, call stack, and callback queue manage asynchronous operations. let, const, var differ in variable scoping and reassignment. setTimeout delays execution. 'this' refers to the current context. Scoping determines variable accessibility.
Redux is a state management tool for JavaScript apps, ensuring predictable state changes.
Event loop manages the ...
Detect loop in a LinkedList
Use two pointers, one moving at twice the speed of the other
If there is a loop, the faster pointer will eventually catch up to the slower one
If there is no loop, the faster pointer will reach the end of the list
GST stands for Goods and Services Tax, a tax levied on the supply of goods and services in India.
GST is a comprehensive indirect tax that has replaced many indirect taxes in India.
It is levied on the value-added to goods and services at each stage of the supply chain.
GST on commission refers to the tax levied on the commission earned by a person or entity for providing services.
The rate of GST on commission varies...
I appeared for an interview in Jun 2025, where I was asked the following questions.
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 ...
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 106 interview experiences
Difficulty level
Duration
based on 931 reviews
Rating in categories
10-14 Yrs
Not Disclosed
5-8 Yrs
Not Disclosed
Senior Software Engineer
339
salaries
| ₹19 L/yr - ₹33 L/yr |
Assistant Manager
273
salaries
| ₹9 L/yr - ₹16.1 L/yr |
Software Engineer
242
salaries
| ₹13 L/yr - ₹23 L/yr |
Holiday Expert
229
salaries
| ₹2 L/yr - ₹6.2 L/yr |
Senior Business Development Manager
224
salaries
| ₹5.4 L/yr - ₹12 L/yr |
Cleartrip
Amazon
Flipkart
Indiamart Intermesh