deno.land / x / masx200_leetcode_test@10.6.5 / VLNEbD / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { assertEquals } from "asserts";import { ArrayToListNode } from "../reverse-linked-list/ArrayToListNode.ts";import reContruct from "./index.ts";import { ListNodeToArray } from "../reverse-linked-list/ListNodeToArray.ts";Deno.test("reContruct", () => { assertEquals( [[1, 4, 3, 6], [5, 7, 9, 9, 1], [2, 4], []].map(ArrayToListNode).map( reContruct, ).map(ListNodeToArray), [[1, 3], [5, 7, 9, 9, 1], [], []], );});
masx200_leetcode_test

Version Info

Tagged at
a year ago