You are viewing a single comment's thread. Return to all comments →
Same goes for Golang
func rotLeft(a []int32, d int32) []int32 {
d=d%int32(len(a)) return append(a[d:],a[:d]...)
}
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays: Left Rotation
You are viewing a single comment's thread. Return to all comments →
Same goes for Golang
func rotLeft(a []int32, d int32) []int32 {
}