Re: Checking for the existence of Duplicates

2007-09-28 Thread Paul Hankin
On Sep 28, 10:27 pm, AndyB <[EMAIL PROTECTED]> wrote: > ... > This is in a program that generates random numbers to do a brute force > solve on a sudoku-like puzzle. Once a certain level of difficulty in > the puzzle is reached, performance goes off a cliff because the > duplicate checking code, a

Checking for the existence of Duplicates

2007-09-28 Thread AndyB
I have found a lot of material on removing duplicates from a list, but I am trying to find the most efficient way to just check for the existence of duplicates in a list. Here is the best I have come up with so far: CheckList = [x[ValIndex] for x in self.__XRList[z]]