sharing/swapping items between lists
Sat Apr 11 05:53:11 CEST 2009
Ross <ross.jett at gmail.com> writes:
> Can you guys suggest an approach to this problem...I'm trying to teach
> myself python so an outline of how to approach this would probably be
> more helpful to me than an explicit solution. I'll cry mercy if I
> can't figure it out after your hints.
Look at the "set" datatype. Think of making some sets of integers
and finding their unions and intersections as appropriate.
More information about the Python-list