Sep-24-2020, 02:26 PM
look at itertools.combinations and note that there might be repeating followers among the 5 users (i.e. you need to use set in order to get unique followers). Then you need to find combinations with the largest number of unique followers
This is brute-force approach and it may take some time if the list is really long
This is brute-force approach and it may take some time if the list is really long
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs