Simpplr
MGM Muthu Hotels & Resorts Interview Questions and Answers
Given an array of length N, you need to find and print the sum of all elements of the array.
Input Format :
Line 1 : An Integer N i.e. size of array Line 2 : N integers which are elements of the ...read more
You are given a string (STR) of length N, consisting of only the lower case English alphabet.
Your task is to remove all the duplicate occurrences of characters in the string.
For E...read more
Q3. Min cost to buy and sell
The minimum cost to buy and sell a product involves considering the purchase price, selling price, and any associated fees.
Calculate the total cost by adding the purchase price and any fees incurred during the buying process.
Calculate the total revenue by subtracting any fees incurred during the selling process from the selling price.
Subtract the total cost from the total revenue to determine the minimum cost to buy and sell.
Q4. Trapping rainwater problem
Trapping rainwater problem involves calculating the amount of rainwater that can be trapped between buildings.
Calculate the maximum height of water that can be trapped at each index
Calculate the water trapped at each index by subtracting the height of the building at that index from the minimum of the maximum heights on its left and right
Sum up the water trapped at each index to get the total amount of rainwater trapped
Q5. How to plan drive ?
Planning a drive involves determining the destination, route, mode of transportation, and necessary supplies.
Decide on the destination and research the route
Choose the mode of transportation (car, train, plane, etc.)
Check for any necessary permits or visas
Pack necessary supplies such as food, water, and clothing
Plan for rest stops and accommodations if needed
Q6. Debaunce function in react
Interview Process at MGM Muthu Hotels & Resorts
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month