Publisher review:Implementing a circular data structure using lists script allows you to define circular data structure. In some applications, it's advantageous to be able to define a circular data structure (a structure in which the last element is a pointer to the first). Python lists make it easy to make such a beast. A list is an ordered sequence of elements, so implementing a "ring" as a Python list is easy. "Turning" the ring consists of removing the last element from the list and placing it in the list's beginning slot. This behavior is encapsulated in a class, which is shown in this script as the "Ring" class.
Implementing a circular data structure using lists is a Python script for Programming Methods and Algorithms scripts design by Chris McDonough.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Implementing a circular data structure using lists script allows you to define circular data structure.
Operating system:Windows / Linux / Mac OS / BSD / Solaris