Google L3 Phone Screen Question
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-02-09Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
Given a stream of data in the format:
[timestamp] Alice called Bob
[timestamp] Alice called Charlie
.....
and a List of people [Alice, Bob, Charlie .. ]
When a person calls the other, they become friends and anyone they are friends with also become their friend.
Determine the timestamp when all users become friends with each other.
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
Given a stream of data in the format:
[timestamp] Alice called Bob
[timestamp] Alice called Charlie
.....
and a List of people [Alice, Bob, Charlie .. ]
When a person calls the other, they become friends and anyone they are friends with also become their friend.
Determine the timestamp when all users become friends with each other.