Add office photos
Engaged Employer

MakeMyTrip

3.7
based on 825 Reviews
Filter interviews by

20+ Sodexo Interview Questions and Answers

Updated 19 Sep 2024
Popular Designations

Q1. Smallest window in a string containing all the characters of another string.(GFG)

Ans.

Find the smallest window in a string containing all characters of another string.

  • Use a sliding window approach to find the smallest window

  • Create a frequency map of characters in the second string

  • Slide the window and update the frequency map until all characters are found

  • Track the minimum window size and indices

View 1 answer

Q2. Algorithm to find if any 5 numbers add up to the value of the Sum

Ans.

Use a hash set to store seen numbers and check if the complement of current number is in the set.

  • Iterate through the array and for each number, check if the complement of the current number is in the hash set.

  • If the complement is found, return true. Otherwise, add the current number to the hash set.

  • Repeat this process for all numbers in the array.

  • Example: Array [1, 2, 3, 4, 5] and Sum 9 should return true as 4 + 5 = 9.

Add your answer

Q3. Deadlocks,4 conditions of Deadlocks and ways of preventing Deadlock

Ans.

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 waiting for the other to release the resource, causing a deadlo...read more

Add your answer

Q4. Check whether linked list is Pallindrome or not

Ans.

To check if a linked list is a palindrome, compare the first half of the list with the reversed second half.

  • Traverse the linked list to find the middle element using slow and fast pointers.

  • Reverse the second half of the linked list.

  • Compare the first half with the reversed second half to check for palindrome.

Add your answer
Discover Sodexo interview dos and don'ts from real experiences

Q5. What is DNS(Domain Name System)

Ans.

DNS is a system that translates domain names to IP addresses, allowing users to access websites using human-readable names.

  • DNS is like a phone book for the internet, translating domain names (e.g. google.com) to IP addresses (e.g. 172.217.3.206).

  • DNS servers store records that map domain names to IP addresses, helping users navigate the internet.

  • DNS also helps with email delivery by translating domain names in email addresses to IP addresses for routing purposes.

Add your answer

Q6. create autosuggest debounce, pollyfill

Ans.

Autosuggest debounce is a feature that delays the search suggestions until the user stops typing, and a polyfill is a piece of code that provides functionality that is not natively supported by the browser.

  • Implement a debounce function to delay the autosuggest feature until the user stops typing.

  • Use a polyfill to provide support for the autosuggest feature in browsers that do not natively support it.

  • Example: Implement a debounce function that waits for 300ms after the user st...read more

Add your answer
Are these interview questions helpful?

Q7. How will you measure the success of Google Pay?

Ans.

The success of Google Pay can be measured through user adoption rates, transaction volume, customer satisfaction, and revenue generated.

  • User adoption rates: Tracking the number of users who have downloaded and actively use the Google Pay app.

  • Transaction volume: Monitoring the total value and frequency of transactions processed through Google Pay.

  • Customer satisfaction: Conducting surveys or analyzing feedback to gauge user satisfaction with the app's features and performance.

  • R...read more

Add your answer

Q8. Kadanes algorithm

Ans.

Kadane's algorithm is used to find the maximum subarray sum in an array of integers.

  • Iterate through the array and keep track of the maximum sum ending at each index.

  • At each index, choose between extending the previous subarray or starting a new subarray.

  • Example: For array [-2, 1, -3, 4, -1, 2, 1, -5, 4], the maximum subarray sum is 6 (from index 3 to 6).

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Program to find all possible combinations of elements from two sets of arrays such that the sum of elements is equal to one of the elements in the array itself.

Ans.

Program to find all possible combinations of elements from two sets of arrays such that the sum of elements is equal to one of the elements in the array itself.

  • Create two arrays of integers

  • Loop through both arrays and find all possible combinations

  • Check if the sum of elements is equal to any element in the array

  • Return all combinations that meet the criteria

Add your answer

Q10. Program to find the next bigger number for the given number by just interchanging it's digits.ex- for 533224, answer is 533242

Ans.

Program to find the next bigger number for the given number by interchanging its digits.

  • Convert the number to a string to access individual digits

  • Start from the rightmost digit and find the first digit that is smaller than the digit to its right

  • Swap this digit with the smallest digit to its right that is greater than it

  • Sort the digits to the right of the swapped digit in ascending order

  • Convert the string back to a number and return

Add your answer

Q11. Design an app similar to Uber but for Kids.

Ans.

An app similar to Uber for kids, providing safe and reliable transportation services for children.

  • Parents can schedule rides for their children through the app

  • Drivers are thoroughly vetted and background checked for safety

  • Real-time tracking and notifications for parents to monitor their child's journey

  • Option for parents to set restrictions on drop-off locations and who can pick up the child

  • Emergency contact feature for parents and drivers to communicate in case of any issues

Add your answer

Q12. How your work will increase our revenue? By sharing the data we can improve our services.

Ans.

Sharing data insights can help improve services and identify revenue opportunities.

  • Analyzing customer behavior can help identify areas for improvement

  • Identifying trends in sales data can help optimize pricing strategies

  • Using data to personalize marketing efforts can increase customer engagement

  • Predictive modeling can help identify potential revenue opportunities

  • Tracking key performance indicators can help optimize business operations

Add your answer

Q13. What qualities should one have in sales?

Ans.

Salespeople should have good communication skills, be persistent, knowledgeable, and empathetic.

  • Excellent communication skills

  • Persistence and determination

  • Product and industry knowledge

  • Empathy and emotional intelligence

  • Ability to build relationships

  • Negotiation skills

  • Time management and organization

  • Adaptability and flexibility

Add your answer

Q14. find the min steps to convert string a to b, you can use deletion, insertion and replace any number of times.

Ans.

Use dynamic programming to find the minimum steps to convert string a to b by deletion, insertion, or replacement.

  • Create a 2D array to store the minimum steps required to convert substrings of a to substrings of b.

  • Initialize the array with base cases for empty strings and iterate through the rest of the array to fill in the values based on previous calculations.

  • The final value in the bottom right corner of the array will be the minimum steps required to convert the entire str...read more

Add your answer

Q15. What is GST and GST on commission?

Ans.

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 depending on the type of service provided.

  • For example, the GST...read more

Add your answer

Q16. calculate no of rows after join

Ans.

Calculate the number of rows after joining two datasets.

  • Count the number of rows in each dataset

  • Perform the join operation

  • Count the number of rows in the resulting dataset

Add your answer

Q17. get a maximum sum from picking corner elements

Ans.

Find the maximum sum by picking corner elements of a matrix

  • Start by selecting the four corner elements of the matrix

  • Compare the sum of the diagonally opposite corners and choose the pair with the higher sum

  • Repeat the process with the remaining elements until all corners are picked

Add your answer

Q18. tell me end to end operation

Ans.

End to end operation refers to the complete process from start to finish in a particular operation or project.

  • Start with understanding client requirements

  • Research and plan the trip itinerary

  • Book flights, accommodations, and activities

  • Provide necessary travel documents and information to the client

  • Ensure smooth travel experience and handle any issues that may arise

  • Follow up with the client for feedback and future bookings

Add your answer

Q19. Journal entry for acquisitions

Ans.

Journal entry for acquisitions

  • Debit the assets acquired account for the fair value of the assets acquired

  • Credit the cash or liabilities assumed account for the fair value of the consideration given

  • Record any goodwill or bargain purchase gain or loss

  • Example: Debit Assets Acquired for $500,000, Credit Cash for $400,000 and Credit Liabilities Assumed for $100,000

Add your answer

Q20. number of buildings from n coins

Ans.

The number of buildings that can be built using n coins can be calculated using a mathematical formula.

  • Use the formula: number of buildings = floor(sqrt(2 * n + 0.25) - 0.5)

  • For example, if n = 5, then number of buildings = floor(sqrt(2 * 5 + 0.25) - 0.5) = floor(sqrt(10.25) - 0.5) = floor(3.2) = 3

Add your answer

Q21. split person name in excel

Ans.

Use Excel's text to columns feature to split person names into separate columns.

  • Select the column containing the full names

  • Go to the Data tab and click on Text to Columns

  • Choose 'Delimited' and select the delimiter that separates the names (e.g. space)

  • Click Finish to split the names into separate columns

Add your answer

Q22. How to handle pressure

Add your answer

Q23. Rotten orange problem

Ans.

The rotten orange problem involves determining the minimum number of minutes it takes for all oranges to become rotten.

  • Use a breadth-first search (BFS) algorithm to solve the problem

  • Create a queue to store the coordinates of rotten oranges

  • Iterate through the grid and enqueue all rotten oranges

  • While the queue is not empty, dequeue an orange and check its neighboring oranges

  • If a neighboring orange is fresh, make it rotten and enqueue its coordinates

  • Keep track of the minutes pas...read more

Add your answer

Q24. Product of array except self

Ans.

Calculate the product of all elements in an array except for the current element.

  • Iterate through the array and calculate the product of all elements except the current element.

  • Use two loops to calculate the product of elements before and after the current element.

  • Handle edge cases like 0s in the array to avoid division by zero errors.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Top MakeMyTrip Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter