Most pythonic way of rotating a circular list to a canonical point

Lukas Barth mail at tinloaf.de
Sat Aug 1 17:12:07 EDT 2015


On Saturday, August 1, 2015 at 10:51:03 PM UTC+2, Emile van Sebille wrote:
> Is the problem to determine if one list of circular numbers 'matches' 
> another one despite rotation status?  If so, I'd do something like:

Well.. no. I actually really need this "canonical" rotation, since I'm hashing this, returning it to other parts of the software, etc..

But thanks!

Lukas



More information about the Python-list mailing list