Meta Interview Question

The meeting room problem.

Interview Answers

Anonymous

Jul 9, 2018

I didn't do well on the question. It motivated me to start practicing more. I would recommend practicing coding challenges on sites like leetcode or hackerrank. They've helped me a lot with feeling more comfortable with other technical interviews.

1

Anonymous

Jul 13, 2018

Minimum Meeting room problem steps: - sort the array by start - define a rooms array that will contain the ends of meeting - loop through the array one and at each iteration find out if there exist an end that is less than the start of the current iteration - if it exists then replace that end with the end you just found in the array and break the rooms loop. - else just add the current end to the room list - Can attend all meetings problem: - Sort the array by start - loop through if you find that M[i].end > M[i+1].start then return false if you dont find anything return true

1

Anonymous

Oct 6, 2020

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Facebook or ex-Facebook IOS Developer experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews