InterviewDB
Question
Pair People: Match Participants into Compatible Pairs to Maximize Overall Compatibility Score
Onsite
Question Details
Problem You have 2n people. Each pair (i, j) has a compatibility score score[i][j]. Pair all people into n non-overlapping pairs to maximize the total compatibility score. Example: Approach Bitmask DP: dp[mask] = max score when people in mask are alr…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Onsite