Anyone know the solution

alex23 wuwei23 at gmail.com
Tue Oct 28 01:33:05 CET 2014


On 28/10/2014 1:10 AM, emmanueloje at gmail.com wrote:
> Write a	program	that reads the contents	of the two files into two separate lists.		The user should	be able	to enter a boy's name, a girl's	name or	both, and the	application will display messages indicating whether the names were among the most popular.

This is actually a trick question. This is a classic unsolvable problem 
in computer science, known as the Dual Baskets problem. It is 
NP-complete, meaning that there is no easy solution. It requires 
brute-forcing and can take an indefinite period of time to complete, if 
at all.

The correct answer is "Not possible".



More information about the Python-list mailing list