From 01a6fcef208d4d1ff5fb88259cccb61410c98a89 Mon Sep 17 00:00:00 2001 From: steak-zhuo Date: Sun, 8 Jan 2023 13:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=AE=8C=E6=95=B4=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=9A=84ts=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/typescript/module/ListNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/typescript/module/ListNode.ts b/codes/typescript/module/ListNode.ts index a5e30340..ef7da663 100644 --- a/codes/typescript/module/ListNode.ts +++ b/codes/typescript/module/ListNode.ts @@ -20,7 +20,7 @@ export default class ListNode { * @param arr * @return */ - arrToLinkedList(arr: number[]) { + arrToLinkedList(arr: number[]): ListNode | null { const dum: ListNode = new ListNode(0); let head = dum; for (const val of arr) {