Problem 2127 · Hard

Maximum Employees to Be Invited to a Meeting

Peel off people nobody needs, then compare the longest favorite cycle with all two-person cycles and their chains.

Open the interactive visualisation