Algorithms & Coding Challenges


You are developing a matchmaking system for your online game and you prioritize that strangers play against each other. This means that if two players $a$ and $b$ are not friends, then they should be in opposite teams. Since you want some diversity you'll allow that friends are grouped in different teams (So two strangers are always in different teams while two friends might be). Develop an algorithm that determines wheter such a grouping is possible given the needed friendship informations.

By |March 25th, 2020|Categories: Algorithms & Coding Challenges|0 Comments