Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2127. Maximum Employees to Be Invited to a Meeting
Given a functional directed graph where each node points to its favorite person, choose the largest subset that can be arranged around a round table so every invited node sits next to its favorite. This reduces to finding the maximum between the length of the largest directed cycle and the sum of sizes formed by all mutual-favorite pairs (2-cycles) extended by the longest incoming chains into each pair.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.