Operations Team Leader Interview Questions

2,414 operations team leader interview questions shared by candidates

Given a set of hotels and its guests reviews, sort the hotels based on a list of words specified by a user. The criteria to sort the hotels should be how many times the words specified by the user is mentioned in the hotel reviews. Input: The first line contains a space-separated set of words which we want to find mentions in the hotel reviews. The second line contains one integer M, which is the number of reviews. This is followed by M+M lines, which alternates an hotel ID and a review belonging to that hotel. Output: A list of hotel IDs sorted, in descending order, by how many mentions they have of the words specified in the input. Notes: * The words to be find will always be single words like 'breakfast' or 'noise*. Never double words like 'swimming pool'. * Hotel ID is a 4-byte integer * Words match should be case-insensitive * Dots and commas should be ignored. * If a word appears in a review twice, it should count twice. * If two hotels have the same number of mentions, they should be sorted in the output based on their ID, smallest ID first. * In case one or more test cases time out, consider revisiting the runtime complexity of your algorithms
avatar

Software Development Team Leader

Interviewed at Booking.com

4.1
Oct 17, 2017

Given a set of hotels and its guests reviews, sort the hotels based on a list of words specified by a user. The criteria to sort the hotels should be how many times the words specified by the user is mentioned in the hotel reviews. Input: The first line contains a space-separated set of words which we want to find mentions in the hotel reviews. The second line contains one integer M, which is the number of reviews. This is followed by M+M lines, which alternates an hotel ID and a review belonging to that hotel. Output: A list of hotel IDs sorted, in descending order, by how many mentions they have of the words specified in the input. Notes: * The words to be find will always be single words like 'breakfast' or 'noise*. Never double words like 'swimming pool'. * Hotel ID is a 4-byte integer * Words match should be case-insensitive * Dots and commas should be ignored. * If a word appears in a review twice, it should count twice. * If two hotels have the same number of mentions, they should be sorted in the output based on their ID, smallest ID first. * In case one or more test cases time out, consider revisiting the runtime complexity of your algorithms

Viewing 2351 - 2360 interview questions

Glassdoor has 2,414 interview questions and reports from Operations team leader interviews. Prepare for your interview. Get hired. Love your job.