Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

left rotation in list

def array_left_rotation(a, d,):
    for i in range(d):
        t = a[0]
        a.pop(0)
        a.append(t)
        
    return a
Source by www.stechies.com #
 
PREVIOUS NEXT
Tagged: #left #rotation #list
ADD COMMENT
Topic
Name
1+7 =