MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / RotateRight

Function RotateRight

DataStructure/LinkList/RotateRight.ts:10–40  ·  view source on GitHub ↗

* 给定一个链表,旋转链表,将链表每个节点向右移动 k 个位置,其中 k 是非负数。 * * @param {ListNode} head * @param {number} k * @return {ListNode}

(head: ListNode, k: number)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

LinkList.test.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected