We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Left Rotation
- Discussions
Left Rotation
Left Rotation
Sort by
recency
|
139 Discussions
|
Please Login in order to post a comment
def rotateLeft(d, arr):
def rotateLeft(d, arr):
Python two solutions #Python
Java 8
Typescript
def rotateLeft(d, arr): # Write your code here b=[] for i in range(len(arr)): k=(d+i)%(len(arr)) b.append(arr[k]) return b