x/masx200_leetcode_test/maximum-width-of-binary-tree/bigint_max.ts
1234567export function bigintMax(...bigs: bigint[]): bigint { if (bigs.length === 0) { throw new Error("empty argument"); } return bigs.reduce((p, v) => (p < v ? v : p), bigs[0]);}