Oct-15-2020, 07:43 PM
(This post was last modified: Oct-15-2020, 07:45 PM by Gribouillis.)
I would use a list and an integer as the underlying data, so that
How would you slice a ring?
ring[k]
is ring.list[(k + ring.shift) % len(ring.list)]
.How would you slice a ring?