akshitagit / Python

Repository for Python codes and algos. Star the repo too.
https://github.com/akshitagupta15june
MIT License
120 stars 110 forks source link

Created cycle.py #145

Closed tdserapio closed 3 years ago

tdserapio commented 3 years ago

The cycle.py basically gets the value of the 'index' of the array. This time, when the index is more than len(arr)-1, it will go back to the start as a 'continuation' of the array.