InterviewDB Experience

Party Invite: Maximum Guests Satisfying Friendship Constraints

Interview Experience

Problem You are hosting a party and have n potential guests numbered 1 to n. You are given a list of conflict pairs — two people who refuse to attend if the other is present. Find the maximum number of guests you can invite such that no conflict pair is both present. Follow-ups Is this equivalent to Maximum Independent Set? What does that imply about complexity in general graphs? If the conflict graph is bipartite, how can you find the exact answer efficiently? For a general graph, what approxim…

Full Details

🔒

Unlock all Ziphq questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a ziphq interview during the phone round.

It covers the following topics: Coding, Graph, Phone, Onsite .