Meta - E4 Phone Screen - Cut Wood and Random picker
Company: Meta
Role: E4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Hi,
I have given the Meta phone screen interview last Friday. These were questions that were asked to me. Both of them were from the list of previously asked questions:
https://leetcode.com/discuss/interview-question/354854/Facebook-or-Phone-Screen-or-Cut-Wood - I've started off with the binary search solution but the interviewer asked me to explain the bruteforce approach first and then wanted to me optimize it. Was able to solve this and asked about the time complexities for bruteforce and optimized solution.
https://leetcode.com/problems/random-pick-with-weight/description/ - similar to this one. gave a map of city names to its population, return random city name with weight.
Was using bisectright method in Python but the interviewer asked me not to use it and asked to implement it. Came up with the solution but panicked when running with an example and thought I went wrong somewhere. But code I wrote seemed to be correct. Asked about the time complexity and space complexity.
Was able to solve both of them just in time. Interviewer dropped the call as soon as clock hit the 45th minute. I thought I didn't make it.
Got a reply from recruiter today (Monday) saying I've cleared it and was moving forward to virtual onsite.
Any tips for the onsite interview and where to start off my preparation on system design??