hariprasadraja
10/1/2019 - 11:10 AM

go slice rotate right

right rotation over the slice for n times

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