What is the most efficient way to compare similar contents in two lists?

Chris Angelico rosuav at gmail.com
Mon Jun 13 14:12:46 EDT 2011


On Tue, Jun 14, 2011 at 4:11 AM, Chris Angelico <rosuav at gmail.com> wrote:
> The algorithm went
> something like this:
>
> * Start with pointers to beginnings of both lists.

PS. It wasn't C with pointers and the like; iirc it actually used
array indices as the "pointers". Immaterial to the algorithm though.

ChrisA



More information about the Python-list mailing list