Skip to main content
Go to Latest
File
// Definition for Node.export class Node { val: number; next: Node | null; random: Node | null; constructor(val?: number, next?: Node, random?: Node) { this.val = val === undefined ? 0 : val; this.next = next === undefined ? null : next; this.random = random === undefined ? null : random; }}