I benefited a lot from the LeetCode community, so I’m sharing my interview questions in the hope that they help others too.
Onsite: 1: Given an array of meeting blocks for each person, each person has a range of days they are unavailable,
The following is a block structure:
It was given :
class block:
int personId;
int startDay;
int endDay;
Find all the days where everyone is available. Return 0 if there are no available slots
Follow up : How would you find all the days where at least P people are available.
Second follow up : find all the periods where P people are available for atleast X consective days.
Verdict: Positive
Onsite:2 https://leetcode.com/discuss/post/4173795/maang-interview-question-by-anonymous_us-y7gg/
Verdict: Negative
Onsite:3
https://leetcode.com/discuss/post/2328651/google-phone-interview-question-by-anony-xgf3/
Verdict : Positive
Since Onsite 2 did not go well. Had one more compensatory round.
Onsite:4
https://leetcode.com/discuss/post/5587195/google-interview-experience-screening-ro-9qqp/
Verdict: Positive
I got the offer!!