Array and Strings
Category: /templateTemplate
Explaination Details | Template Index |
Many times we need to check Binary search, Two pointers, Sliding window
- Circular array
arr = [1,2,3,4,5]
n = len(arr)
for i in range(len(n) * 2):
print(arr[i % n])