deno.land / x / masx200_leetcode_test@10.6.5 / flatten-a-multilevel-doubly-linked-list / Node.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
export class Node { val: number; prev: Node | null; next: Node | null; child: Node | null; constructor(val?: number, prev?: Node, next?: Node, child?: Node) { this.val = val === undefined ? 0 : val; this.prev = prev === undefined ? null : prev; this.next = next === undefined ? null : next; this.child = child === undefined ? null : child; }}
masx200_leetcode_test

Version Info

Tagged at
a year ago