x/masx200_leetcode_test/cong-wei-dao-tou-da-yin-lian-biao-lcof/index.ts
1234567import { ListNode } from "../reverse-linked-list/ListNode.ts";import { ListNodeToArray } from "../reverse-linked-list/ListNodeToArray.ts";export default function reversePrint(head: ListNode | null): number[] { return ListNodeToArray(head).reverse();}