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

Function ReorderList

DataStructure/LinkList/ReorderList.ts:11–44  ·  view source on GitHub ↗

* 重排链表 * 给定一个单链表 L:L0→L1→…→Ln-1→Ln , * 将其重新排列后变为: L0→Ln→L1→Ln-1→L2→Ln-2→… * * @param {ListNode} head * @return {ListNode}

(head:ListNode)

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