1.0.0 • Published 5 years ago

array-rotation v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

#Array Rotation

const ArrayRotation = require('array-rotation');

#Array Left Rotaition

const ArrayRotation = require('array-rotation'); //array = 1,2,3,4 ,numberofTimes=3 ArrayRotation.arrayLRotate(array,numberofTimes)

Example

ArrayRotation.arrayLRotate(1,2,3,4,3)

#Array Right Rotaition

//array = 1,2,3,4 ,numberofTimes=3 ArrayRotation.arrayRRotate(array,numberofTimes)

Example

ArrayRotation.arrayRRotate(1,2,3,4,3)