|
|
back to boardhow to slove this ?? Posted by shweta 24 Jun 2016 22:51 any hints plzzzz Re: how to slove this ?? Lamest O(2^K) is enough here. Re: how to slove this ?? Act greedy. At each iteration select such team X, that if X in contest, then the number of teams can't attend contest is minimal. Remove such teams that have common members with X from the list. |
|
|