Non-Adjacent Team Selection
Microsoft interview questions · Hard · Coding round · 6 tests
Choose the highest-skill subset of people such that no selected pair shares a connection edge.
The full question, tests and reference solution are available with a plan that includes Microsoft.
Run your code with Ctrl+Enter to see results.