MCPcopy Create free account
hub / github.com/algorithm004-01/algorithm004-01 / RotateOne

Function RotateOne

Week 01/id_301/main.go:52–64  ·  view source on GitHub ↗

** 向右移动数组解法1 解法思想 : 当一个数组长度为n,移动后k次,当k =n的时候,其实本质上是移动了k对n求余次数 */

(nums []int, k int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected