hariprasadraja
10/1/2019 - 11:09 AM

go slice rotate left

Left Rotate the slice for n times

// Left Rotate the 'arr' for '1' times
	if rCount := 1; rCount == len(arr) || rCount != 0 {
		arr = append(arr[rCount:], arr[:rCount]...)
	}